spec/cancan-permits/fixtures/permits/admin_permit.rb in cancan-permits-0.1.4 vs spec/cancan-permits/fixtures/permits/admin_permit.rb in cancan-permits-0.2.1

- old
+ new

@@ -1,10 +1,10 @@ class AdminPermit < Permit::Base - def initialize(ability) + def initialize(ability, options = {}) super end - def permit?(user, request=nil) + def permit?(user, options = {}) super return if !role_match? user can :manage, :all end