Class: CanTango::Config::Permits::Accounts

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/cantango/permits_ext/config/permits/accounts.rb

Instance Method Summary collapse

Instance Method Details

#registriesObject



10
11
12
# File 'lib/cantango/permits_ext/config/permits/accounts.rb', line 10

def registries
  @registries ||= {}
end

#registry_for(name) ⇒ Object



6
7
8
# File 'lib/cantango/permits_ext/config/permits/accounts.rb', line 6

def registry_for name
  registries[name] ||= CanTango::Registry::Permit::Base.new
end