lib/zendesk_api/actions.rb
def save(options = {}, &block)
      save!(options, &block)
    rescue ZendeskAPI::Error::RecordInvalid => e
      @errors = e.errors
      false
    rescue ZendeskAPI::Error::ClientError
      false
    end
def save(options = {}, &block)
      save!(options, &block)
    rescue ZendeskAPI::Error::RecordInvalid => e
      @errors = e.errors
      false
    rescue ZendeskAPI::Error::ClientError
      false
    end
def save ( options = { } , & block ) save! ( options , block ) rescue ZendeskAPI :: Error :: RecordInvalid => e @errors = e . errors false rescue ZendeskAPI :: Error :: ClientError false end
Saves, returning false if it fails and attaching the errors
Saves returning false if it fails and attaching the errors