Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AddictPhoto
- include Mongoid::Document
- embedded_in :addict, :inverse_of => :addict_photo
- mount_uploader :image, AddictUploader
- field :right, :type => Boolean
- field :left, :type => Boolean
- field :up, :type => Boolean
- field :down, :type => Boolean
- field :size, :type => Integer
- end
Add Comment
Please, Sign In to add comment