mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-20 06:01:32 -04:00
Use bang! to indicate method can explode
This commit is contained in:
1 parent
498a754eea
commit
abd91fa37b
2 files changed
+4
-4
No files matched your search
@@ -1,6 +1,6 @@
|
||||
module Admin
|
||||
class MembersController < ApplicationController
|
||||
before_action :admin?
|
||||
before_action :admin!
|
||||
load_and_authorize_resource
|
||||
respond_to :html
|
||||
responders :flash
|
||||
@@ -34,7 +34,7 @@ module Admin
|
||||
params[:q]
|
||||
end
|
||||
|
||||
def admin?
|
||||
def admin!
|
||||
authorize! :manage, :all
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Admin
|
||||
class RolesController < ApplicationController
|
||||
before_action :admin?
|
||||
before_action :admin!
|
||||
load_and_authorize_resource
|
||||
respond_to :html
|
||||
responders :flash
|
||||
@@ -36,7 +36,7 @@ module Admin
|
||||
|
||||
private
|
||||
|
||||
def admin?
|
||||
def admin!
|
||||
authorize! :manage, :all
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user