Skip to content

Instantly share code, notes, and snippets.

@chandresh
Created January 9, 2012 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chandresh/1580526 to your computer and use it in GitHub Desktop.
Save chandresh/1580526 to your computer and use it in GitHub Desktop.
Mercury image upload using mongoid and paperclip
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