Sha256: cf38f2b48bb7a637565960ea89555f7328212fdb476efa3543fbafbf8df5d986

Contents?: true

Size: 174 Bytes

Versions: 29

Compression:

Stored size: 174 Bytes

Contents

class ZoneMember < ActiveRecord::Base
  belongs_to :zone
  belongs_to :zoneable, :polymorphic => true

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

end

Version data entries

29 entries across 29 versions & 6 rubygems

Version Path
spree_core-0.60.2 app/models/zone_member.rb
spree_core-0.70.0.rc2 app/models/zone_member.rb
spree_core-0.70.RC1 app/models/zone_member.rb
spree_core-0.60.1 app/models/zone_member.rb
spree_core-0.60.0 app/models/zone_member.rb
spree_core-0.60.0.RC1 app/models/zone_member.rb
spree_core-0.50.2 app/models/zone_member.rb
spree_core-0.50.1 app/models/zone_member.rb
spree_core-0.50.0 app/models/zone_member.rb