mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
94b9306647
- Convert serializers/mixin_json_test.rb to rspec - Convert functional/thread_safety_test.rb to rspec - Convert functional/controller_test.rb to rspec - Move the dummy app from test to spec, delete test dir
6 lines
320 B
Ruby
6 lines
320 B
Ruby
# 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") }
|
|
end
|