module Rodauth::ClassMethods

  1. lib/rodauth.rb

Methods

Public Instance

  1. freeze
  2. precompile_rodauth_templates
  3. rodauth

Public Instance methods

freeze()
[show source]
    # File lib/rodauth.rb
519 def freeze
520   opts[:rodauths].each_value(&:freeze)
521   opts[:rodauths].freeze
522   super
523 end
precompile_rodauth_templates()
[show source]
    # File lib/rodauth.rb
503 def precompile_rodauth_templates
504   instance = allocate
505   rodauth = instance.rodauth
506 
507   view_opts = rodauth.send(:loaded_templates).map do |page|
508     rodauth.send(:_view_opts, page)
509   end
510   view_opts << rodauth.send(:button_opts, '', {})
511 
512   view_opts.each do |opts|
513     instance.send(:retrieve_template, opts).send(:compiled_method, opts[:locals].keys.sort_by(&:to_s))
514   end
515 
516   nil
517 end
rodauth(name=nil)
[show source]
    # File lib/rodauth.rb
499 def rodauth(name=nil)
500   opts[:rodauths][name]
501 end