test/dummy/app/versions/joined_version.rb in paper_trail-4.2.0 vs test/dummy/app/versions/joined_version.rb in paper_trail-5.0.0
- old
+ new
@@ -1,5 +1,6 @@
-# The purpose of this custom version class is to test the scope methods on the VersionConcern::ClassMethods
-# module. See https://github.com/airblade/paper_trail/issues/295 for more details.
+# The purpose of this custom version class is to test the scope methods on the
+# VersionConcern::ClassMethods module. See
+# https://github.com/airblade/paper_trail/issues/295 for more details.
class JoinedVersion < PaperTrail::Version
- default_scope { joins('INNER JOIN widgets ON widgets.id = versions.item_id') }
+ default_scope { joins("INNER JOIN widgets ON widgets.id = versions.item_id") }
end