Skip to content
Snippets Groups Projects
Commit 8592f10a authored by Stan Hu's avatar Stan Hu
Browse files

Merge branch 'fix/keep-compatility-ruby-21' into 'master'

Avoid use of Hash#dig to keep compatibility with Ruby 2.1

See merge request !8153
parents a22be306 34ed74fa
No related branches found
No related tags found
No related merge requests found
Loading
@@ -6,7 +6,7 @@ module OauthApplications
Loading
@@ -6,7 +6,7 @@ module OauthApplications
end end
   
def prepare_scopes def prepare_scopes
scopes = params.dig(:doorkeeper_application, :scopes) scopes = params.fetch(:doorkeeper_application, {}).fetch(:scopes, nil)
   
if scopes if scopes
params[:doorkeeper_application][:scopes] = scopes.join(' ') params[:doorkeeper_application][:scopes] = scopes.join(' ')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment