Sha256: 7108a819e0c6c86214b959d0cdffaa6712d39716cfdccbed25c8b782abecb190
Contents?: true
Size: 555 Bytes
Versions: 78
Compression:
Stored size: 555 Bytes
Contents
module RocketCMS module Models module ActiveRecord module Page extend ActiveSupport::Concern included do acts_as_nested_set has_paper_trail if respond_to?(: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 RocketCMS.config.localize translates :name, :content end end end end end end
Version data entries
78 entries across 78 versions & 1 rubygems