gallery/app/models/album_image.rb

16 lines
312 B
Ruby
Raw Permalink Normal View History

class AlbumImage
include Mongoid::Document
include Mongoid::Timestamps
include OrbitTag::Taggable
mount_uploader :file, GalleryUploader
field :title
field :description, localize: true
2014-06-13 08:15:13 +00:00
field :rss2_id, type: String
# has_and_belongs_to_many :tags, :class_name => "GalleryTag"
belongs_to :album
end