Class: OrdinaryCms::Mercury::Image

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Paperclip
Defined in:
app/models/ordinary_cms/mercury/image.rb

Instance Method Summary collapse

Instance Method Details

#serializable_hash(options = nil) ⇒ Object



15
16
17
18
19
20
# File 'app/models/ordinary_cms/mercury/image.rb', line 15

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