This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/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