zerigo_ns.rb
# fix save() because ARes 2.3 is failing on content-type matching and thus not reporting any error messages
fix save() because ARes 2.3 is failing on content-type matching and thus not reporting any error messages
fix save () because ARes 2 . 3 is failing on content - type matching and thus not reporting any error messages
def save
        save_without_validation
        true
      rescue ActiveResource::ResourceInvalid => error
        case error.response['Content-Type']
        when /application\/xml/
          errors.from_xml(error.response.body)
        when /application\/json/
          errors.from_json(error.response.body)
        end
        false
      end
def save save_without_validation true rescue ActiveResource :: ResourceInvalid => error case error . response [ 'Content-Type' ] when / application \/ xml / errors . from_xml ( error . response . body ) when / application \/ json / errors . from_json ( error . response . body ) end false end
fix save() because ARes 2.3 is failing on content-type matching and thus not reporting any error messages
fix save () because ARes 2 . 3 is failing on content - type matching and thus not reporting any error messages