Sha256: 8ee666ff81d6954e2a00d1542ac3f5d98482b0866a1fcbeb59732dd83e770a5a

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 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

      def initialize
        map_devise
        map_devise_invitable
        map_controller 'EacUsersSupport::Admin::Users', :manage, ::EacUsersSupport::User
        map_controller 'Aranha::Addresses', :manage, ::Aranha::Address
        map_controller 'Aranha::StartPoints', :manage, ::Aranha::StartPoint
        map_controller 'BrRailties::FederalUnits', :manage, ::BrRailties::FederalUnit
        map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
        map_controller 'ScheduledTasks', :manage, ::ScheduledTask
        map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
        map_eac_rails_base0
      end

      def map_eac_rails_base0
        map_controller 'EacRailsBase0::Mailer', :manage, :eac_rails_base0_mailer
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eac_rails_base0-0.53.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.52.3 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.52.2 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.52.1 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.52.0 lib/eac_rails_base0/app_base/ability_mapping.rb