lib/cancan-permits/permits/ability.rb in cancan-permits-0.3.0 vs lib/cancan-permits/permits/ability.rb in cancan-permits-0.3.1

- old
+ new

@@ -25,10 +25,16 @@ special_permits << [:system, :any].map{|role| make_permit(role, ability, options)} role_permits = Permits::Roles.available.inject([]) do |permits, role| permit = make_permit(role, ability, options) permits << permit if permit end - (special_permits + role_permits).flatten.compact + + # puts "Role permits: #{role_permits}" + + all_permits = (special_permits + role_permits).flatten.compact + # + # puts "All permits: #{all_permits}" + # all_permits end def initialize user, options = {} # put ability logic here! user ||= Guest.create