Sha256: 5847ad7cb237725709eabb5db3f29d16e9a74bd774dd5c9231056c5b55076559

Contents?: true

Size: 363 Bytes

Versions: 18

Compression:

Stored size: 363 Bytes

Contents

module Abilities
    class ThecoreBackendCommons
        include CanCan::Ability
        def initialize user
            # Main abilities file for Thecore applications
            if user.present?
                # Users' abilities
                if user.admin?
                    # Admins' abilities
                end
            end
        end
    end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
thecore_backend_commons-3.2.4 config/initializers/abilities.rb
thecore_backend_commons-3.2.3 config/initializers/abilities.rb
thecore_backend_commons-3.2.2 config/initializers/abilities.rb
thecore_backend_commons-3.2.1 config/initializers/abilities.rb
thecore_backend_commons-3.2.0 config/initializers/abilities.rb
thecore_backend_commons-3.1.9 config/initializers/abilities.rb
thecore_backend_commons-3.1.8 config/initializers/abilities.rb
thecore_backend_commons-3.1.7 config/initializers/abilities.rb
thecore_backend_commons-3.1.6 config/initializers/abilities.rb
thecore_backend_commons-3.1.5 config/initializers/abilities.rb
thecore_backend_commons-3.1.4 config/initializers/abilities.rb
thecore_backend_commons-3.1.3 config/initializers/abilities.rb
thecore_backend_commons-3.1.2 config/initializers/abilities.rb
thecore_backend_commons-3.1.1 config/initializers/abilities.rb
thecore_backend_commons-3.1.0 config/initializers/abilities.rb
thecore_backend_commons-3.0.9 config/initializers/abilities.rb
thecore_backend_commons-3.0.8 config/initializers/abilities.rb
thecore_backend_commons-3.0.7 config/initializers/abilities.rb