Sha256: a5f0dc488e0a3c1079bdd72a9561789021b0ce5d19b88a82d8b5395a047dcbac
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
module RocketCMS module Models module Mongoid module Page extend ActiveSupport::Concern included do field :qregexp, type: String field :redirect, type: String field :content, type: String, localize: RocketCMS.config.localize field :fullpath, type: String has_and_belongs_to_many :menus, inverse_of: :pages acts_as_nested_set scope :sorted, -> { asc(:lft) } end def regexp=(value) self.qregexp = value end def regexp self.qregexp || read_attribute(:regexp) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rocket_cms-0.19.3 | lib/rocket_cms/models/mongoid/page.rb |