Class: Mercury::Image

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Paperclip
Defined in:
lib/generators/mercury/install/images/templates/ar_paperclip_image.rb,
lib/generators/mercury/install/images/templates/mongoid_paperclip_image.rb

Instance Method Summary collapse

Instance Method Details

#serializable_hash(options = nil) ⇒ Object



13
14
15
16
17
18
# File 'lib/generators/mercury/install/images/templates/ar_paperclip_image.rb', line 13

def serializable_hash(options = nil)
  options ||= {}
  options[:methods] ||= []
  options[:methods] << :url
  super(options)
end