ssh keys controller: skip find_user method

This commit is contained in:
Alexander Machehin 2015-04-23 15:28:16 +05:00
parent db5b585547
commit 9a077ac77f
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
class Users::SshKeysController < Users::BaseController class Users::SshKeysController < Users::BaseController
before_action :set_current_user before_action :set_current_user
before_action -> { authorize current_user, :update? } before_action -> { authorize current_user, :update? }
skip_before_action :find_user
def index def index
@ssh_key = SshKey.new @ssh_key = SshKey.new