lib/generators/spotlight/install_generator.rb in blacklight-spotlight-2.0.2 vs lib/generators/spotlight/install_generator.rb in blacklight-spotlight-2.1.0

- old
+ new

@@ -31,20 +31,10 @@ def paper_trail generate 'paper_trail:install' end - # Overriding paper trail initializer to turn track_associations off - # This was off by default prior to paper trail 9.1.0 but is now generated as on - def override_paper_trail_initializer - gsub_file( - 'config/initializers/paper_trail.rb', - 'PaperTrail.config.track_associations = true', - 'PaperTrail.config.track_associations = false' - ) - end - def sitemaps gem 'sitemap_generator' Bundler.with_clean_env { run 'bundle install' } @@ -124,10 +114,10 @@ if options[:mailer_default_url_host].present? say 'Injecting a placeholder config.action_mailer.default_url_options; be sure to update it for your environment', :yellow insert_into_file 'config/application.rb', after: "< Rails::Application\n" do <<-EOF config.action_mailer.default_url_options = { host: "#{options[:mailer_default_url_host]}", from: "noreply@example.com" } - EOF + EOF end else say 'Please add a default configuration config.action_mailer.default_url_options for your environment', :red end end