Sha256: 1689e9dc071af5d2ca4d86d470478dd720dae60d39ac49f3d9a3f6c529f7a17f
Contents?: true
Size: 1.59 KB
Versions: 6
Compression:
Stored size: 1.59 KB
Contents
# frozen_string_literal: true module EacRailsBase0 module AppBase class AbilityMapping include CanCanDry::AbilityMapping include CanCanDry::AbilityMappingSets::ActiveScaffold include CanCanDry::AbilityMappingSets::Devise include CanCanDry::AbilityMappingSets::DeviseInvitable MAP_METHODS = %w[aranha br_railties devise devise_invitable eac_rails_base0 eac_rails_remotes eac_users_support tasks_schedulers].freeze def initialize MAP_METHODS.each { |m| send("map_#{m}") } end def map_eac_rails_remotes map_controller 'EacRailsRemotes::Instances', :manage, ::EacRailsRemotes::Instance end def map_eac_rails_base0 map_controller 'EacRailsBase0::Mailer', :manage, :eac_rails_base0_mailer end def map_eac_users_support map_controller 'EacUsersSupport::Admin::Users', :manage, ::EacUsersSupport::User end def map_aranha map_controller 'Aranha::Addresses', :manage, ::Aranha::Address map_controller 'Aranha::ProcessorConfigurations', :manage, ::Aranha::ProcessorConfiguration map_controller 'Aranha::StartPoints', :manage, ::Aranha::StartPoint end def map_br_railties map_controller 'BrRailties::FederalUnits', :manage, ::BrRailties::FederalUnit map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality end def map_tasks_schedulers map_controller 'ScheduledTasks', :manage, ::ScheduledTask map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask end end end end
Version data entries
6 entries across 6 versions & 1 rubygems