Module: ActiveResourceFixes31

Includes:
ActiveResourceFixes
Defined in:
lib/remotable/active_resource_fixes.rb

Instance Method Summary collapse

Methods included from ActiveResourceFixes

#respond_to?

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