Module: Rodauth::InstanceMethods

Defined in:
lib/rodauth.rb

Instance Method Summary collapse

Instance Method Details

#default_rodauth_nameObject



407
408
409
# File 'lib/rodauth.rb', line 407

def default_rodauth_name
  nil
end

#rodauth(name = default_rodauth_name) ⇒ Object



411
412
413
414
415
416
417
# File 'lib/rodauth.rb', line 411

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