annotate .svn/pristine/7a/7a02a2b52dbb9fec21affbfddb6cc6bab3abeeb7.svn-base @ 1271:cf4cc816278a live last_rails2_version

Remove inner quotes from realm (workaround for #577)
author Chris Cannam
date Tue, 07 May 2013 12:45:51 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 namespace :redmine do
Chris@909 2 desc "List all permissions and the actions registered with them"
Chris@909 3 task :permissions => :environment do
Chris@909 4 puts "Permission Name - controller/action pairs"
Chris@909 5 Redmine::AccessControl.permissions.sort {|a,b| a.name.to_s <=> b.name.to_s }.each do |permission|
Chris@909 6 puts ":#{permission.name} - #{permission.actions.join(', ')}"
Chris@909 7 end
Chris@909 8 end
Chris@909 9 end