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