Sha256: 80cc3c637d64928ffb53f10959c22e2e97746d9ce162b9d44a8acd2b7dd00abb
Contents?: true
Size: 522 Bytes
Versions: 38
Compression:
Stored size: 522 Bytes
Contents
module RocketCMS 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 RocketCMS.config.localize translates :name, :content end end end end end end
Version data entries
38 entries across 38 versions & 2 rubygems