module Rodauth::ClassMethods
def freeze
def freeze opts[:rodauths].each_value(&:freeze) opts[:rodauths].freeze super end
def precompile_rodauth_templates
def precompile_rodauth_templates instance = allocate rodauth = instance.rodauth view_opts = rodauth.send(:loaded_templates).map do |page| rodauth.send(:_view_opts, page) end view_opts << rodauth.send(:button_opts, '', {}) view_opts.each do |opts| instance.send(:retrieve_template, opts).send(:compiled_method, opts[:locals].keys.sort_by(&:to_s)) end nil end
def rodauth(name=nil)
def rodauth(name=nil) opts[:rodauths][name] end