Class: Mercury::Image

Inherits:
ActiveRecord::Base
  • Object
show all
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(options = nil)
  options ||= {}
  options[:methods] ||= []
  options[:methods] << :url
  super(options)
end