Sha256: fe1f2ee66a28ab2d3aa73db7f9ef47d8cc3eadfc88a4c3c004706e96c3dd0798

Contents?: true

Size: 358 Bytes

Versions: 35

Compression:

Stored size: 358 Bytes

Contents

module Abilities
    class ThecoreUiCommons
        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

35 entries across 35 versions & 1 rubygems

Version Path
thecore_ui_commons-3.2.15 config/initializers/abilities.rb
thecore_ui_commons-3.2.14 config/initializers/abilities.rb
thecore_ui_commons-3.2.13 config/initializers/abilities.rb
thecore_ui_commons-3.2.12 config/initializers/abilities.rb
thecore_ui_commons-3.2.11 config/initializers/abilities.rb
thecore_ui_commons-3.2.10 config/initializers/abilities.rb
thecore_ui_commons-3.2.9 config/initializers/abilities.rb
thecore_ui_commons-3.2.8 config/initializers/abilities.rb
thecore_ui_commons-3.2.7 config/initializers/abilities.rb
thecore_ui_commons-3.2.6 config/initializers/abilities.rb
thecore_ui_commons-3.2.5 config/initializers/abilities.rb
thecore_ui_commons-3.2.4 config/initializers/abilities.rb
thecore_ui_commons-3.2.3 config/initializers/abilities.rb
thecore_ui_commons-3.2.2 config/initializers/abilities.rb
thecore_ui_commons-3.2.1 config/initializers/abilities.rb
thecore_ui_commons-3.2.0 config/initializers/abilities.rb
thecore_ui_commons-3.1.11 config/initializers/abilities.rb
thecore_ui_commons-3.1.10 config/initializers/abilities.rb
thecore_ui_commons-3.1.9 config/initializers/abilities.rb
thecore_ui_commons-3.1.8 config/initializers/abilities.rb