spec/cancan-permits/fixtures/permits/admin_permit.rb in cancan-permits-0.1.0 vs spec/cancan-permits/fixtures/permits/admin_permit.rb in cancan-permits-0.1.1

- old
+ new

@@ -1,14 +1,12 @@ -module RolePermit - class Admin < Base - def initialize(ability) - super - end - - def permit?(user, request=nil) - super - return if !role_match? user - - can :manage, :all - end +class AdminPermit < Permit::Base + def initialize(ability) + super end -end \ No newline at end of file + + def permit?(user, request=nil) + super + return if !role_match? user + + can :manage, :all + end +end