Sha256: f69efa54799fec5019f1a035e09bf04c1aa2448807082cdb76a7c17a03d0c920
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true namespace :can_can_dry do desc 'Mostra o mapeamento de CanCanDry' task ability_mapping: :environment do AbilityMapping.new.mapping.each do |controller, actions| puts "#{controller} (#{actions.count})" actions.each do |action| puts "\t#{action}" end end end desc 'Inform the path and receive the controller/action.' task :path_recognize, [:path] => :environment do |_t, args| r = CanCanDry::PathRecognizer.recognize('', args.path) Rails.logger.info("Result: #{r}") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
can_can_dry-0.5.7 | lib/tasks/can_can_dry.rake |
can_can_dry-0.5.6 | lib/tasks/can_can_dry.rake |