Sha256: 45149e472acfd53477859e816fddf5395eec2fa5c2e7bf5fed2221c93eae182d

Contents?: true

Size: 270 Bytes

Versions: 5

Compression:

Stored size: 270 Bytes

Contents

module CanTango
  class Configuration
    class PermitRegistry
      [:user, :account, :role, :role_group].each do |permit|
        class_eval %{
          def #{permit}
            @#{permit} ||= HashRegistry.new
          end
        }
      end

    end
  end
end



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cantango-0.8.7 lib/cantango/configuration/permit_registry.rb
cantango-0.8.6.2 lib/cantango/configuration/permit_registry.rb
cantango-0.8.6.1 lib/cantango/configuration/permit_registry.rb
cantango-0.8.6 lib/cantango/configuration/permit_registry.rb
cantango-0.8.5.1 lib/cantango/configuration/permit_registry.rb