Sha256: bd8addacecc5734038f1537c8967bafc5cc3782a2fbf9815cee43e6ebfb1ab40

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

class Link < ActiveRecord::Base
  validates_presence_of :label

  field :label, :string, :translatable => true
  field :description, :text, :translatable => true
  include Positionable
  
  has_attached :image
  has_attached :icon
  
  belongs_to :link_owner, :polymorphic => true
  belongs_to :linked, :polymorphic => true
  
  timestamps
  field :nofollow, :boolean
  field :url, :string

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fullstack-cms-0.2.13 app/models/link.rb