Sha256: 192f34fa82aef33973cec4b6211435b4953ef48cb20d4ec1b6a31aa477fcff0c

Contents?: true

Size: 309 Bytes

Versions: 16

Compression:

Stored size: 309 Bytes

Contents

module Spree
  class ZoneMember < ActiveRecord::Base
    belongs_to :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

16 entries across 16 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/models/spree/zone_member.rb
spree_core-1.3.4 app/models/spree/zone_member.rb
spree_core-1.3.3 app/models/spree/zone_member.rb
spree_core-1.2.5 app/models/spree/zone_member.rb
spree_core-1.2.4 app/models/spree/zone_member.rb
spree_core-1.3.2 app/models/spree/zone_member.rb
spree_core-1.2.3 app/models/spree/zone_member.rb
spree_core-1.3.1 app/models/spree/zone_member.rb
spree_core-1.3.0 app/models/spree/zone_member.rb
spree_core-1.3.0.rc2 app/models/spree/zone_member.rb
dup_spree_core-1.3.0.rc1 app/models/spree/zone_member.rb
spree_core-1.3.0.rc1 app/models/spree/zone_member.rb
spree_core-1.2.2 app/models/spree/zone_member.rb
spree_core-1.2.0 app/models/spree/zone_member.rb
spree_core-1.2.0.rc2 app/models/spree/zone_member.rb
spree_core-1.2.0.rc1 app/models/spree/zone_member.rb