Sha256: 851682b16cee560a43759bef7884abde84c89c3ff2e99dba19f9727602c0400e
Contents?: true
Size: 485 Bytes
Versions: 10
Compression:
Stored size: 485 Bytes
Contents
require_dependency 'landable/has_assets' module Landable class Theme < ActiveRecord::Base include Landable::TableName include Landable::HasAssets include Landable::Librarian validates_presence_of :name, :description validates_uniqueness_of :name, case_sensitive: false has_many :pages, inverse_of: :theme class << self def create_from_layouts! return unless table_exists? Layout.all.map(&:to_theme) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems