Orbit/app/models/ad_image.rb

17 lines
294 B
Ruby

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