lib/abilities/extensions/action_controller/base.rb in abilities-5.1.1 vs lib/abilities/extensions/action_controller/base.rb in abilities-5.1.2

- old
+ new

@@ -8,10 +8,11 @@ helper_method :can?, :cannot? end %w(can? cannot?).each do |name| define_method name do |action, resource| - Abilities.send name, current_user, action, resource + user = send(Abilities.configuration.helper) + Abilities.send name, user, action, resource end end private