Sha256: f58069ba3574458ff0467a8c6254f7aeae204dc10277a6b972c86de1df4c6698
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
namespace :authorule do desc "Lists all available permissions" task :list => :environment do Authorule.available_permissions.each do |kind, permissions| puts "#{kind}:" permissions.each do |permission| if permission.available_actions.blank? puts " #{permission.name}" else puts " #{permission.name} (#{permission.available_actions.join(', ')})" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
authorule-1.2.0 | lib/tasks/permissions.rake |
authorule-1.0.1 | lib/tasks/permissions.rake |
authorule-1.0.0 | lib/tasks/permissions.rake |