fix MR comments
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class AccountLocksController < ApplicationController
|
||||
class Admin::AccountLocksController < Admin::ApplicationController
|
||||
before_action :set_account
|
||||
|
||||
def create
|
||||
@@ -16,8 +16,8 @@ class AccountLocksController < ApplicationController
|
||||
private
|
||||
|
||||
def set_account
|
||||
if params[:id].present?
|
||||
@account = Account.find(params[:id])
|
||||
if params[:account_id].present?
|
||||
@account = Account.find_by(slug: params[:account_id])
|
||||
else
|
||||
failure_redirect
|
||||
end
|
||||
Reference in New Issue
Block a user