Sha256: 296dbeabeefda6250a24113eae19d6dcf8ab328c07e0bd0e64078f44a22f1527
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
module Spree class ZoneMember < ActiveRecord::Base belongs_to :zone, :class_name => "Spree::Zone" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_core-1.1.2 | app/models/spree/zone_member.rb |
spree_core-1.1.2.rc1 | app/models/spree/zone_member.rb |