Class: Suspenders::DbOptimizationsGenerator
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
#add_bullet ⇒ Object
5
6
7
8
|
# File 'lib/suspenders/generators/db_optimizations_generator.rb', line 5
def add_bullet
gem "bullet", group: %i(development test)
Bundler.with_clean_env { run "bundle install" }
end
|
10
11
12
13
14
15
16
|
# File 'lib/suspenders/generators/db_optimizations_generator.rb', line 10
def configure_bullet
inject_into_file(
"config/environments/development.rb",
configuration,
after: "config.action_mailer.raise_delivery_errors = true\n",
)
end
|