Sha256: f409f2eeaa83c31e50f8e3946fa642a7397bbcf1a38c5c304a3d78bf94ed70cd
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
module MegaBar class Theme < ActiveRecord::Base has_many :sites has_many :portfolios belongs_to :themeable, polymorphic: true has_many :theme_joins has_many :layouts, through: :theme_joins, source: :themeable, source_type: 'Layout' has_many :blocks, through: :theme_joins, source: :themeable, source_type: 'Block' validates_uniqueness_of :code_name validates_presence_of :code_name, 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/theme.rb |
mega_bar-0.5.1 | app/models/mega_bar/theme.rb |