aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/extensions/gallery_links/app/models')
-rw-r--r--vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb b/vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb
new file mode 100644
index 0000000..b83cdd1
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb
@@ -0,0 +1,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