2012-07-25 08:20:07 +00:00
|
|
|
class GalleryImage
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
|
|
|
mount_uploader :file, GalleryUploader
|
|
|
|
|
|
|
|
field :title
|
|
|
|
field :description
|
|
|
|
|
2012-07-31 13:15:42 +00:00
|
|
|
has_and_belongs_to_many :tags, :class_name => "GalleryTag"
|
|
|
|
|
2012-07-25 08:20:07 +00:00
|
|
|
belongs_to :gallery_album
|
|
|
|
|
|
|
|
end
|