mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-26 18:02:38 -04:00
tweaked cancan defaults (we don't have current_user)
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
protect_from_forgery
|
||||
|
||||
# tweak CanCan defaults because we don't have a "current_user" method
|
||||
def current_ability
|
||||
@current_ability ||= AccountAbility.new(current_member)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user