ruby - Rails 5 - Doorkeeper token create ( ArgumentError ) -


currently, i'm converting rails 4 app rails 5. i'm having error in doorkeeper in creating token.

argumenterror (wrong number of arguments (given 2, expected 0..1)):   app/controllers/oauth/tokens_controller.rb:4:in `create'   class oauth::tokenscontroller < doorkeeper::tokenscontroller   def create     response = authorize_response     self.headers.merge! response.headers     self.response_body =       if response.status == :ok         json_success( response )       else         json_fail( response )       end   end 

end

everything fine in rails 4.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -