Sha256: 919bd05a8fae9a7c994794e3396598eac2fe42fad034892733edd46a80f3b218
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
module Flms class BlocksPage < ActiveRecord::Base attr_accessible :block_id, :block, :page_id, :page, :ordering, :active belongs_to :block, class_name: 'Flms::Block' belongs_to :page, class_name: 'Flms::Page' scope :ordered, order('ordering').includes(:block) scope :is_active, where(active: true ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flms-0.9.0 | app/models/flms/blocks_page.rb |
flms-0.1.0 | app/models/flms/blocks_page.rb |