Sha256: 7b458840da346d7eccd78b1ce3f7bdb1868551fcf091c2a94893d9ed551957e5

Contents?: true

Size: 351 Bytes

Versions: 12

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

# 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

12 entries across 12 versions & 1 rubygems

Version Path
paper_trail_scrapbook-0.2.0 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.21 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.20 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.19 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.18 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.17 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.16 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.15 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.13 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.12 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.11 spec/dummy_app/app/versions/joined_version.rb
paper_trail_scrapbook-0.1.10 spec/dummy_app/app/versions/joined_version.rb