Sha256: 8016e584a92b9708aa9733373fb619c0fc3a8cbe84767083858b5b76caa72478

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

module Enjoy::Pages
  module Models
    module ActiveRecord
      module Menu
        extend ActiveSupport::Concern
        included do
          has_paper_trail
          validates_lengths_from_database only: [:name]
          if Enjoy::Pages.config.localize
            translates :name
          end

          has_and_belongs_to_many :pages,
                                  class_name: "Enjoy::Pages::Page",
                                  join_table: :enjoy_pages_menus_pages
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms_pages-0.4.1 lib/enjoy/pages/models/active_record/menu.rb
enjoy_cms_pages-0.4.0 lib/enjoy/pages/models/active_record/menu.rb
enjoy_cms_pages-0.4.0.beta3 lib/enjoy/pages/models/active_record/menu.rb