tweaked cancan defaults (we don't have current_user)

This commit is contained in:
Skud
2013-02-01 10:25:54 +11:00
parent 71760a4369
commit ea8f30bd8d

View File

@@ -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