Sha256: c145db1288b11b46824c41326b1c52c72f545f3254cc321802db449337cb445f

Contents?: true

Size: 330 Bytes

Versions: 15

Compression:

Stored size: 330 Bytes

Contents

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

    attr_accessible :zone, :zone_id, :zoneable, :zoneable_id, :zoneable_type

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_core-2.0.13 app/models/spree/zone_member.rb
spree_core-2.0.12 app/models/spree/zone_member.rb
spree_core-2.0.11 app/models/spree/zone_member.rb
spree_core-2.0.10 app/models/spree/zone_member.rb
spree_core-2.0.9 app/models/spree/zone_member.rb
spree_core-2.0.8 app/models/spree/zone_member.rb
spree_core-2.0.7 app/models/spree/zone_member.rb
spree_core-2.0.6 app/models/spree/zone_member.rb
spree_core-2.0.5 app/models/spree/zone_member.rb
spree_core-2.0.4 app/models/spree/zone_member.rb
spree_core-2.0.3 app/models/spree/zone_member.rb
spree_core-2.0.2 app/models/spree/zone_member.rb
spree_core-2.0.1 app/models/spree/zone_member.rb
spree_core-2.0.0 app/models/spree/zone_member.rb
spree_core-2.0.0.rc1 app/models/spree/zone_member.rb