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
Post a Comment