Sha256: 2025e4e93fa21832286829b9d5dc6ed29b659da9b8c5fd94c99d2666561d93bd

Contents?: true

Size: 878 Bytes

Versions: 13

Compression:

Stored size: 878 Bytes

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 'BrRailties::FederalUnits', :manage, ::BrRailties::FederalUnit
        map_controller 'BrRailties::Municipalities', :manage, ::BrRailties::Municipality
        map_controller 'ScheduledTasks', :manage, ::ScheduledTask
        map_controller 'TasksSchedulerDaemon', :manage, ::ScheduledTask
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eac_rails_base0-0.45.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.44.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.43.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.42.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.41.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.40.1 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.40.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.39.1 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.39.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.38.1 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.38.0 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.37.1 lib/eac_rails_base0/app_base/ability_mapping.rb
eac_rails_base0-0.37.0 lib/eac_rails_base0/app_base/ability_mapping.rb