Sha256: 7fe6c644f11473e7e37c0c4dd4ef72828c57087c6ac1563add97edaa7311b276

Contents?: true

Size: 389 Bytes

Versions: 14

Compression:

Stored size: 389 Bytes

Contents

require 'singleton'

module CanTango
  class Configuration
    class Engines
      class Permit < Engine
        include Singleton

        def on?
          @state ||= :on
          @state == :on
        end

        def types
          [:roles, :role_groups, :licenses, :users]
        end

        def special_permits
          [:any, :system]
        end
      end
    end
  end
end


Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cantango-0.8.9.5 lib/cantango/configuration/engines/permit.rb
cantango-0.8.9.4 lib/cantango/configuration/engines/permit.rb
cantango-0.8.9.3 lib/cantango/configuration/engines/permit.rb
cantango-0.8.9.2 lib/cantango/configuration/engines/permit.rb
cantango-0.8.9.1 lib/cantango/configuration/engines/permit.rb
cantango-0.8.9 lib/cantango/configuration/engines/permit.rb
cantango-0.8.8.1 lib/cantango/configuration/engines/permit.rb
cantango-0.8.8 lib/cantango/configuration/engines/permit.rb
cantango-0.8.7 lib/cantango/configuration/engines/permit.rb
cantango-0.8.6.2 lib/cantango/configuration/engines/permit.rb
cantango-0.8.6.1 lib/cantango/configuration/engines/permit.rb
cantango-0.8.6 lib/cantango/configuration/engines/permit.rb
cantango-0.8.5.1 lib/cantango/configuration/engines/permit.rb
cantango-0.8.0 lib/cantango/configuration/engines/permit.rb