Created
January 9, 2012 01:48
-
-
Save chandresh/1580526 to your computer and use it in GitHub Desktop.
Mercury image upload using mongoid and paperclip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mercury::Image | |
include Mongoid::Document | |
include Mongoid::Timestamps | |
field :image_file_name, type: String | |
field :image_content_type, type: String | |
field :image_file_size, type: String | |
field :image_updated_at, type: DateTime | |
# -- todo: add stuff related to paperclip | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment