From 81abc686214112d46e503ba766ca35c7374e8aeb Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 30 Jul 2014 16:43:43 +0200 Subject: [PATCH] Return only simple attributes on PATCH to settings --- lib/travis/api/app/endpoint/repos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/api/app/endpoint/repos.rb b/lib/travis/api/app/endpoint/repos.rb index 5cb2c7da..1e52b7d0 100644 --- a/lib/travis/api/app/endpoint/repos.rb +++ b/lib/travis/api/app/endpoint/repos.rb @@ -65,7 +65,7 @@ class Travis::Api::App # TODO: I would like to have better API here, but leaving this # for testing to not waste too much time before I can play with it if settings.save - respond_with({ settings: settings.obfuscated }, version: :v2) + respond_with({ settings: settings.simple_attributes }, version: :v2) else status 422 respond_with(settings, type: :validation_error, version: :v2)