Sha256: 655103e919b11138edf92f4b9dcfba700243fc9126bca6f28c8b88a42645f928
Contents?: true
Size: 454 Bytes
Versions: 17
Compression:
Stored size: 454 Bytes
Contents
class Cms::Link < ActiveRecord::Base acts_as_content_block :connectable => false scope :named, lambda{|name| {:conditions => ["#{table_name}.name = ?", name]}} has_one :section_node, :as => :node, :dependent => :destroy, :inverse_of => :node, :class_name => 'Cms::SectionNode' validates_presence_of :name include Cms::Addressable include Cms::Addressable::DeprecatedPageAccessors #needed by menu_helper def path url end end
Version data entries
17 entries across 17 versions & 1 rubygems