simplify if block
Rashmi Yadav
9 years ago
50 | 50 | end |
51 | 51 | end |
52 | 52 | |
53 | if (options[:use_authorize] && options[:use_authorize] != false) || request.params['use_authorize'] == 'true' | |
53 | if options[:use_authorize] || request.params['use_authorize'] == 'true' | |
54 | 54 | options[:client_options][:authorize_path] = '/oauth/authorize' |
55 | 55 | else |
56 | 56 | options[:client_options][:authorize_path] = '/oauth/authenticate' |