Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/ar_to_hash/extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
3 4 5 |
# File 'lib/ar_to_hash/extensions.rb', line 3 def to_hash ActiveSupport::JSON.decode(self.to_json) end |