Module: Rodauth::InstanceMethods
- Defined in:
- lib/rodauth.rb
Instance Method Summary collapse
Instance Method Details
#default_rodauth_name ⇒ Object
506 507 508 |
# File 'lib/rodauth.rb', line 506 def default_rodauth_name nil end |
#rodauth(name = default_rodauth_name) ⇒ Object
510 511 512 513 514 515 516 |
# File 'lib/rodauth.rb', line 510 def rodauth(name=default_rodauth_name) if name (@_rodauths ||= {})[name] ||= self.class.rodauth(name).new(self) else @_rodauth ||= self.class.rodauth.new(self) end end |