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

Version Path
browsercms-3.5.7 app/models/cms/link.rb
browsercms-3.5.6 app/models/cms/link.rb
browsercms-3.5.5 app/models/cms/link.rb
browsercms-3.5.4 app/models/cms/link.rb
browsercms-3.5.3 app/models/cms/link.rb
browsercms-3.5.2 app/models/cms/link.rb
browsercms-3.5.1 app/models/cms/link.rb
browsercms-3.5.0 app/models/cms/link.rb
browsercms-3.5.0.rc3 app/models/cms/link.rb
browsercms-3.5.0.rc2 app/models/cms/link.rb
browsercms-3.5.0.rc1 app/models/cms/link.rb
browsercms-3.4.2 app/models/cms/link.rb
browsercms-3.4.2.rc1 app/models/cms/link.rb
browsercms-3.4.1 app/models/cms/link.rb
browsercms-3.4.0 app/models/cms/link.rb
browsercms-3.4.0.rc2 app/models/cms/link.rb
browsercms-3.4.0.rc1 app/models/cms/link.rb