Sha256: a31a0c879bac2bb01dcb9bad1d7119b806516fb78ca3fdaf715bc62b97ca4063
Contents?: true
Size: 514 Bytes
Versions: 27
Compression:
Stored size: 514 Bytes
Contents
module Enjoy module Models module ActiveRecord module Page extend ActiveSupport::Concern included do acts_as_nested_set has_paper_trail validates_lengths_from_database only: [:name, :title, :content, :excerpt, :h1, :keywords, :robots, :og_title, :regexp, :redirect, :fullpath] scope :sorted, -> { order(lft: :asc) } if Enjoy.config.localize translates :name, :content end end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems