Method: Spree::Core::ControllerHelpers::Auth#current_ability
- Defined in:
- app/helpers/spree/core/controller_helpers/auth.rb
#current_ability ⇒ Object
Needs to be overriden so that we use Spree’s Ability rather than anyone else’s.
29 30 31 |
# File 'app/helpers/spree/core/controller_helpers/auth.rb', line 29 def current_ability @current_ability ||= Spree::Ability.new(spree_current_user) end |