Sha256: 67d5d09acc6ea660fc28555306403b722df6717ab3e6fa6588cd5f642cde01d4
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
module MegaBar class Site < ActiveRecord::Base belongs_to :portfolio belongs_to :theme belongs_to :siteable, polymorphic: true has_many :site_joins has_many :layouts, through: :site_joins, source: :siteable, source_type: 'Layout' has_many :blocks, through: :site_joins, source: :siteable, source_type: 'Block' validates_uniqueness_of :code_name validates_presence_of :code_name, allow_blank: false validates_presence_of :portfolio_id, allow_blank: false validates_presence_of :theme_id, allow_blank: false validates_presence_of :name, allow_blank: false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.5.2 | app/models/mega_bar/site.rb |
mega_bar-0.5.1 | app/models/mega_bar/site.rb |