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

Version Path
browsercms-artirix-4.0.4 app/models/cms/link.rb
browsercms-artirix-4.0.3.3 app/models/cms/link.rb
browsercms-artirix-4.0.3.2 app/models/cms/link.rb
browsercms-artirix-4.0.3.1 app/models/cms/link.rb
browsercms-artirix-4.0.3 app/models/cms/link.rb
browsercms-artirix-4.0.2 app/models/cms/link.rb
browsercms-artirix-4.0.1.1 app/models/cms/link.rb
browsercms-artirix-4.0.0.rc1.art4 app/models/cms/link.rb
browsercms-4.0.0.rc1 app/models/cms/link.rb
browsercms-4.0.0.beta app/models/cms/link.rb
browsercms-4.0.0.alpha app/models/cms/link.rb