Class: ActiveResource::Base
- Inherits:
-
Object
- Object
- ActiveResource::Base
- Defined in:
- lib/activeresource_json_patch.rb
Instance Method Summary collapse
Instance Method Details
#encode_with_json(options = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/activeresource_json_patch.rb', line 7 def encode_with_json(={}) case self.class.format when ActiveResource::Formats[:json] self.class.format.encode self.class.element_name => attributes else encode_without_json() end end |