2012-07-25 08:20:07 +00:00
|
|
|
class GalleryImage
|
2013-08-22 08:24:14 +00:00
|
|
|
include Mongoid::Document
|
2013-04-29 06:59:08 +00:00
|
|
|
include Mongoid::Timestamps
|
|
|
|
include OrbitTag::Taggable
|
2012-07-25 08:20:07 +00:00
|
|
|
|
2013-04-29 06:59:08 +00:00
|
|
|
mount_uploader :file, GalleryUploader
|
2012-07-25 08:20:07 +00:00
|
|
|
|
2013-04-29 06:59:08 +00:00
|
|
|
field :title
|
|
|
|
field :description, localize: true
|
2012-07-25 08:20:07 +00:00
|
|
|
|
2013-04-29 06:59:08 +00:00
|
|
|
# has_and_belongs_to_many :tags, :class_name => "GalleryTag"
|
2012-07-31 13:15:42 +00:00
|
|
|
|
2013-04-29 06:59:08 +00:00
|
|
|
belongs_to :gallery_album
|
2012-07-25 08:20:07 +00:00
|
|
|
|
|
|
|
end
|