Class: Mercury::Image
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mercury::Image
- Includes:
- Mongoid::Document, Mongoid::Paperclip
- Defined in:
- lib/generators/mercury/install/templates/mongoid_paperclip_image.rb,
app/models/mercury/image.rb
Instance Method Summary collapse
Instance Method Details
#serializable_hash(options = nil) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/generators/mercury/install/templates/mongoid_paperclip_image.rb', line 11 def serializable_hash( = nil) ||= {} [:methods] ||= [] [:methods] << :url super() end |