Sha256: 8f90333ad1e6b1e6f2723307d7b1d56783321042a01f4922da8cf834807e53a5
Contents?: true
Size: 666 Bytes
Versions: 3
Compression:
Stored size: 666 Bytes
Contents
module Enjoy::Pages module Models module ActiveRecord module Page extend ActiveSupport::Concern included do has_paper_trail validates_lengths_from_database only: [:name, :content_html, :excerpt_html, :regexp, :redirect, :fullpath] scope :sorted, -> { order(lft: :asc) } if Enjoy::Pages.config.localize translates :name, :content_html, :excerpt_html end has_and_belongs_to_many :menus, class_name: "Enjoy::Pages::Menu", join_table: :enjoy_pages_menus_pages end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems