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