Sha256: da1bebee0104e88e0664614c2fdf35a1ac4221c3b19e3b9151d680fc72636120

Contents?: true

Size: 320 Bytes

Versions: 9

Compression:

Stored size: 320 Bytes

Contents

# 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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paper_trail_scrapbook-0.1.9 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.8 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.7 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.6 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.3 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.2 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.1 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.0 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.0.2 spec/dummy_app/app/versions/joined_version.rb