Skip to content

Commit

Permalink
Merge pull request #1098 from jkeck/patch-1
Browse files Browse the repository at this point in the history
Use with-associations option for the generated track_associations...
  • Loading branch information
jaredbeck authored May 30, 2018
2 parents b45949c + 5c2df2e commit 7510adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/paper_trail/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def create_migration_file
def create_initializer
create_file(
"config/initializers/paper_trail.rb",
"PaperTrail.config.track_associations = true\n",
"PaperTrail.config.track_associations = #{!!options.with_associations?}\n",
"PaperTrail.config.association_reify_error_behaviour = :error"
)
end
Expand Down

0 comments on commit 7510adb

Please sign in to comment.