orbit-basic/vendor/built_in_modules/gallery/app/models/gallery_image.rb

15 lines
292 B
Ruby

class GalleryImage
include Mongoid::Document
include Mongoid::Timestamps
include OrbitTag::Taggable
mount_uploader :file, GalleryUploader
field :title
field :description, localize: true
# has_and_belongs_to_many :tags, :class_name => "GalleryTag"
belongs_to :gallery_album
end