Sha256: 649bda9cd58a881a584da78f7ab487bc6932a894dcd15a70098c03ee104ba77d

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 Bytes

Contents

class Membership < ActiveRecord::Base
  belongs_to :member
  belongs_to :club
end

class CurrentMembership < Membership
  belongs_to :member
  belongs_to :club
end

class SelectedMembership < Membership
  def self.default_scope
    select("'1' as foo")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-nuodb-adapter-2.0.3 test/models/membership.rb
activerecord-nuodb-adapter-2.0 test/models/membership.rb
activerecord-nuodb-adapter-1.1 test/models/membership.rb
activerecord-nuodb-adapter-1.0.4 test/models/membership.rb