Sha256: bbc9d701bae5b3bc0429a777f9e69067ef4ebf721475abc06cce076194a6a7e5

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

module RocketCMS
  module Models
    module Menu
      extend ActiveSupport::Concern
      include RocketCMS::Model
      include Enableable
      include ManualSlug

      included do
        field :name, type: String
        manual_slug :name
        has_and_belongs_to_many :pages, inverse_of: :menus
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rocket_cms-0.3.2 lib/rocket_cms/models/menu.rb
rocket_cms-0.2.12 lib/rocket_cms/models/menu.rb
rocket_cms-0.2.10 lib/rocket_cms/models/menu.rb
rocket_cms-0.1.13 lib/rocket_cms/models/menu.rb