Skip to content

Commit

Permalink
Overwrite the PaperTrail.config.track_associations option to be false
Browse files Browse the repository at this point in the history
This was introduced (accidentally) upstream in 9.1.0
  • Loading branch information
jkeck authored and mejackreed committed May 30, 2018
1 parent c9772dd commit f74aa80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/generators/spotlight/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ 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'

Expand Down

0 comments on commit f74aa80

Please sign in to comment.