class RailsNewApp::FormBuilderProcessor
Public Instance Methods
configure(config)
click to toggle source
# File lib/rails-new-app/processors/form_builder_processor.rb, line 10 def configure(config) puts "Processing Form Builder config" case config[:form_builder][:key] when "simple_form" then apply_template "simple_form-config" when "formtastic" then apply_template "formtastic-config" end end
update_gemfile(config)
click to toggle source
# File lib/rails-new-app/processors/form_builder_processor.rb, line 3 def update_gemfile(config) case config[:form_builder][:key] when "simple_form" then apply_template "simple_form-gemfile" when "formtastic" then apply_template "formtastic-gemfile" end end