diff options
Diffstat (limited to 'app/controllers/concerns/oauth_applications.rb')
-rw-r--r-- | app/controllers/concerns/oauth_applications.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/concerns/oauth_applications.rb b/app/controllers/concerns/oauth_applications.rb index 8e63cc391ff..5b6fe933fda 100644 --- a/app/controllers/concerns/oauth_applications.rb +++ b/app/controllers/concerns/oauth_applications.rb @@ -12,9 +12,7 @@ module OauthApplications def prepare_scopes scopes = params.fetch(:doorkeeper_application, {}).fetch(:scopes, nil) - if scopes - params[:doorkeeper_application][:scopes] = scopes.join(' ') - end + params[:doorkeeper_application][:scopes] = scopes.join(' ') if scopes end def set_created_session @@ -30,7 +28,7 @@ module OauthApplications end def permitted_params - %i{name redirect_uri scopes confidential} + %i[name redirect_uri scopes confidential] end def application_params |