Sha256: e4ed1f117fa19fb52a82ae6064cc0d309c00b0065ce65ea0f5b68bc458d80396

Contents?: true

Size: 361 Bytes

Versions: 6

Compression:

Stored size: 361 Bytes

Contents

namespace :rights do
  desc "Check for controllers without rights"
  task :check => :environment do
    puts "Missing rights for controllers:"
    puts RightOn::RightsManager.missing_rights
  end
  
  desc "Add rights for missing controllers"
  task :add, [:controller, :action] => :environment do |t, args|
    RightOn::RightsManager.add_right(args)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
right_on-1.0.0 lib/right_on/tasks/rights_roles.rake
right_on-0.4.1 lib/right_on/tasks/rights_roles.rake
right_on-0.4.0 lib/right_on/tasks/rights_roles.rake
right_on-0.3.0 lib/right_on/tasks/rights_roles.rake
right_on-0.2.0 lib/right_on/tasks/rights_roles.rake
right_on-0.1.0 lib/right_on/tasks/rights_roles.rake