Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary PaperTrail V10 version checks
- Loading branch information
1 parent
ed19f9e
commit b7c4d51
Showing
2 changed files
with
1 addition
and
6 deletions.
There are no files selected for viewing
6 changes: 1 addition & 5 deletions
6
spec/dummy_app/app/active_record/paper_trail_test_with_custom_association.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
class PaperTrailTestWithCustomAssociation < ActiveRecord::Base | ||
self.table_name = :paper_trail_tests | ||
if PaperTrail::VERSION::MAJOR >= 10 | ||
has_paper_trail versions: {name: :trails} | ||
else | ||
has_paper_trail versions: :trails | ||
end | ||
has_paper_trail versions: {name: :trails} | ||
end |
This file was deleted.
Oops, something went wrong.