Commit 6b87515c authored by James Lopez's avatar James Lopez

fix specs and small bug

parent 187d513c
...@@ -18,7 +18,7 @@ class Oauth::ApplicationsController < Doorkeeper::ApplicationsController ...@@ -18,7 +18,7 @@ class Oauth::ApplicationsController < Doorkeeper::ApplicationsController
def create def create
@application = Applications::CreateService.new(current_user, create_application_params).execute @application = Applications::CreateService.new(current_user, create_application_params).execute
if @application.persited? if @application.persisted?
flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create]) flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create])
redirect_to oauth_application_url(@application) redirect_to oauth_application_url(@application)
...@@ -57,7 +57,7 @@ class Oauth::ApplicationsController < Doorkeeper::ApplicationsController ...@@ -57,7 +57,7 @@ class Oauth::ApplicationsController < Doorkeeper::ApplicationsController
def create_application_params def create_application_params
application_params.tap do |params| application_params.tap do |params|
params[:doorkeeper_application][:owner] = current_user params[:owner] = current_user
params[:ip_address] = request.remote_ip params[:ip_address] = request.remote_ip
end end
end end
......
class Profiles::KeysController < Profiles::ApplicationController class Profiles::KeysController < Profiles::ApplicationController
skip_before_action :authenticate_user!, only: [:get_keys] skip_before_action :authenticate_user!, only: [:get_keys]
def index def index
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment