Sha256: d6c525cfadd92fb98480447684db0d08ce44b7c58f3534eb4dbe5912c41dcb36

Contents?: true

Size: 501 Bytes

Versions: 32

Compression:

Stored size: 501 Bytes

Contents

module RocketCMS
  module Models
    module Mongoid
      module Page
        extend ActiveSupport::Concern
        included do
          field :regexp, type: String
          field :redirect, type: String
          field :content, type: String, localize: RocketCMS.configuration.localize
          field :fullpath, type: String
          has_and_belongs_to_many :menus, inverse_of: :pages
          acts_as_nested_set
          scope :sorted, -> { asc(:lft) }
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rocket_cms-0.7.1 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.7.0 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.18 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.17 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.16 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.15 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.14 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.13 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.12 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.11 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.10 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.9 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.8 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.7 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.6 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.5 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.4 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.3 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.2 lib/rocket_cms/models/mongoid/page.rb
rocket_cms-0.6.1 lib/rocket_cms/models/mongoid/page.rb