aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb
blob: e275fb2a326483ac984cb3034990ceb95fa3c0d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Refinery
  module GalleryLinks
    class GalleryLink < Refinery::Core::BaseModel
      self.table_name = 'refinery_gallery_links'

      belongs_to :image, class_name: ::Refinery::Image

      attr_accessible :title, :url, :photographer, :description, :image_id, :position

      validates :title, :presence => true, :uniqueness => true
    end
  end
end