Class: Suspenders::FormsGenerator
Instance Method Summary
collapse
default_source_root
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file
Instance Method Details
5
6
7
8
|
# File 'lib/suspenders/generators/forms_generator.rb', line 5
def add_simple_form
gem "simple_form"
Bundler.with_clean_env { run "bundle install" }
end
|
10
11
12
13
14
15
16
|
# File 'lib/suspenders/generators/forms_generator.rb', line 10
def configure_simple_form
create_file "config/initializers/simple_form.rb" do
"SimpleForm.setup {|config|}"
end
generate "simple_form:install", "--force"
end
|