orbit-basic/app/models/ad_image.rb

17 lines
294 B
Ruby
Raw Normal View History

2012-01-31 10:31:31 +00:00
class AdImage
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, ImageUploader
field :time_to_next #Weight
field :picture_intro
field :out_link
field :to_save, :type => Boolean
field :to_destroy, :type => Boolean
embedded_in :ad_banner
end