lib/enjoy/models/mongoid/menu.rb in enjoy_cms-0.3.0.4 vs lib/enjoy/models/mongoid/menu.rb in enjoy_cms-0.3.1

- old
+ new

@@ -3,9 +3,13 @@ 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