Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#to_msgpack(*args) ⇒ Object



3
4
5
# File 'lib/core_ext.rb', line 3

def to_msgpack *args
  { self.class.model_name.element => serializable_hash }.to_msgpack *args
end