Sha256: e66d1060da5898c45ba1e1bf4eab4fa6d377768728c42a437811f3362e5e12ba

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 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

4 entries across 4 versions & 1 rubygems

Version Path
advert_selector-3.0.1 app/models/advert_selector/helper_item.rb
advert_selector-3.0.0 app/models/advert_selector/helper_item.rb
advert_selector-2.0.1 app/models/advert_selector/helper_item.rb
advert_selector-2.0.0 app/models/advert_selector/helper_item.rb