Sha256: 7b3e536edad526858a7e302ec014ffdaf2e8516d19ff3c0ad8768508b1c0c722

Contents?: true

Size: 450 Bytes

Versions: 16

Compression:

Stored size: 450 Bytes

Contents

module Enjoy
  module Models
    module Mongoid
      module Menu
        extend ActiveSupport::Concern

        included do
          if defined?(RailsAdminComments)
            include RailsAdminComments::Commentable
          end

          has_and_belongs_to_many :pages, inverse_of: :menus, class_name: "Enjoy::Page"
          alias_method :items, :pages

          field :name, type: String, default: ""
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.7.3 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.7.2 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.7.1 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.7 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.6.2 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.6.1 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.6 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.5 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.4 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.3 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.2.1 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.2 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.1.2 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.1.1 lib/enjoy/models/mongoid/menu.rb
enjoy_cms-0.3.1 lib/enjoy/models/mongoid/menu.rb