Sha256: ede576877ce0528b4a5a2095b47294e01e198bd6355586d59cacbf5fa3c748e4

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

class Link < ActiveRecord::Base
  validates_presence_of :label

  field :label, :string
  include Positionable
 
  # field :description, :text 
  # 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.3.30 app/models/link.rb