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

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

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