Method: Sohm::Model#to_json
- Defined in:
- lib/sohm/json.rb
#to_json(*args) ⇒ Object
Export a JSON representation of the model by encoding ‘to_hash`.
6 7 8 |
# File 'lib/sohm/json.rb', line 6 def to_json(*args) to_hash.to_json(*args) end |