Sha256: 384a323e5f649ca81b082bd1052d523972ff76cd03824b289fd6ab4baa533981

Contents?: true

Size: 272 Bytes

Versions: 45

Compression:

Stored size: 272 Bytes

Contents

module Spree
  class ZoneMember < Spree::Base
    belongs_to :zone, class_name: 'Spree::Zone', counter_cache: true, inverse_of: :zone_members
    belongs_to :zoneable, polymorphic: true

    def name
      return nil if zoneable.nil?
      zoneable.name
    end
  end
end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
solidus_core-1.1.4 app/models/spree/zone_member.rb
solidus_core-1.0.7 app/models/spree/zone_member.rb
solidus_core-1.0.6 app/models/spree/zone_member.rb
solidus_core-1.1.3 app/models/spree/zone_member.rb
solidus_core-1.0.5 app/models/spree/zone_member.rb
solidus_core-1.0.4 app/models/spree/zone_member.rb
solidus_core-1.1.2 app/models/spree/zone_member.rb
solidus_core-1.0.3 app/models/spree/zone_member.rb
solidus_core-1.1.1 app/models/spree/zone_member.rb
solidus_core-1.1.0 app/models/spree/zone_member.rb
solidus_core-1.1.0.pre2 app/models/spree/zone_member.rb
solidus_core-1.1.0.pre1 app/models/spree/zone_member.rb
solidus_core-1.1.0.beta1 app/models/spree/zone_member.rb
solidus_core-1.0.2 app/models/spree/zone_member.rb
spree_core-2.4.10 app/models/spree/zone_member.rb
spree_core-2.3.13 app/models/spree/zone_member.rb
solidus_core-1.0.1 app/models/spree/zone_member.rb
solidus_core-1.0.0 app/models/spree/zone_member.rb
solidus_core-1.0.0.rc2 app/models/spree/zone_member.rb
solidus_core-1.0.0.rc1 app/models/spree/zone_member.rb