Sha256: a2de8f544c21d5abdbca53f8d1d451609186b125023d8cd9fc9390fe4e5e57cd
Contents?: true
Size: 434 Bytes
Versions: 11
Compression:
Stored size: 434 Bytes
Contents
class Cms::Link < ActiveRecord::Base acts_as_content_block connectable: false, content_module: false scope :named, lambda { |name| {:conditions => ["#{table_name}.name = ?", name]} } validates_presence_of :name is_addressable include Cms::Concerns::Addressable::DeprecatedPageAccessors #needed by menu_helper def path url end # @override def self.permitted_params super + [:publish_on_save] end end
Version data entries
11 entries across 11 versions & 2 rubygems