mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 05:29:31 -04:00
Rename is_admin? to admin?.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module Admin
|
||||
class MembersController < ApplicationController
|
||||
before_action :is_admin?
|
||||
before_action :admin?
|
||||
load_and_authorize_resource
|
||||
respond_to :html
|
||||
responders :flash
|
||||
@@ -34,7 +34,7 @@ module Admin
|
||||
params[:q]
|
||||
end
|
||||
|
||||
def is_admin?
|
||||
def admin?
|
||||
authorize! :manage, :all
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Admin
|
||||
class RolesController < ApplicationController
|
||||
before_action :is_admin?
|
||||
before_action :admin?
|
||||
load_and_authorize_resource
|
||||
respond_to :html
|
||||
responders :flash
|
||||
@@ -36,7 +36,7 @@ module Admin
|
||||
|
||||
private
|
||||
|
||||
def is_admin?
|
||||
def admin?
|
||||
authorize! :manage, :all
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user