2015-10-23 06:50:07 +00:00
|
|
|
require 'net/http'
|
2014-05-05 06:07:18 +00:00
|
|
|
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
|
2015-04-16 12:07:54 +00:00
|
|
|
field :order, type: Integer, default: 0
|
2014-05-05 06:07:18 +00:00
|
|
|
|
|
|
|
# has_and_belongs_to_many :tags, :class_name => "GalleryTag"
|
|
|
|
|
|
|
|
belongs_to :album
|
|
|
|
|
|
|
|
end
|