Sha256: dbd840a338d50244ff922a08226a88f864f465610722ef0bbbe5be919f207715

Contents?: true

Size: 445 Bytes

Versions: 12

Compression:

Stored size: 445 Bytes

Contents

class Link < ActiveRecord::Base
  validates_presence_of :label

  field :label, :string
  field :description, :text
  field :position, :integer
  
  has_attached :image
  has_attached :icon
  
  belongs_to :link_owner, :polymorphic => true
  
  timestamps
  field :external, :boolean
  field :nofollow, :boolean
  field :url, :string
  field :alignment_right, :boolean, :default => :false
  alias_attribute :right_alignment, :alignment_right
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fullstack-cms-0.1.17 app/models/link.rb
fullstack-cms-0.1.15 app/models/link.rb
fullstack-cms-0.1.14 app/models/link.rb
fullstack-cms-0.1.13 app/models/link.rb
fullstack-cms-0.1.12 app/models/link.rb
fullstack-cms-0.1.11 app/models/link.rb
fullstack-cms-0.1.9 app/models/link.rb
fullstack-cms-0.1.8 app/models/link.rb
fullstack-cms-0.1.7 app/models/link.rb
fullstack-cms-0.1.6 app/models/link.rb
fullstack-cms-0.1.5 app/models/link.rb
fullstack-cms-0.1.4 app/models/link.rb