Sha256: 050449bf5220e7d1b90bf8201b2c13a0f861be598b3fe92b926f0241618c66eb
Contents?: true
Size: 475 Bytes
Versions: 5
Compression:
Stored size: 475 Bytes
Contents
module AdvertSelector class HelperItem < ActiveRecord::Base attr_accessible :master_id, :master_type, :name, :position, :content_for, :content #belongs_to :master, :polymorphic => true #acts_as_list :scope => [:master_id, :master_type] belongs_to :banner, :class_name => 'AdvertSelector::Banner' acts_as_list :scope => :banner_id def name_sym @name_sym ||= name.downcase.to_sym end def blank? name.blank? end end end
Version data entries
5 entries across 5 versions & 1 rubygems