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.
|
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
|