Module: ActiveResourceFixes31
- Includes:
- ActiveResourceFixes
- Defined in:
- lib/remotable/active_resource_fixes.rb
Instance Method Summary collapse
-
#load_attributes_from_response(response) ⇒ Object
! in this method, don’t check the Content-Type header: rack doesn’t always return it.
Methods included from ActiveResourceFixes
Instance Method Details
#load_attributes_from_response(response) ⇒ Object
! in this method, don’t check the Content-Type header: rack doesn’t always return it
40 41 42 43 44 45 |
# File 'lib/remotable/active_resource_fixes.rb', line 40 def load_attributes_from_response(response) if !response.body.nil? && response.body.strip.size > 0 load(self.class.format.decode(response.body), true) @persisted = true end end |