Public Instance methods
freeze()
[show source]
# File lib/rodauth.rb 441 def freeze 442 opts[:rodauths].each_value(&:freeze) 443 opts[:rodauths].freeze 444 super 445 end
precompile_rodauth_templates()
[show source]
# File lib/rodauth.rb 425 def precompile_rodauth_templates 426 instance = allocate 427 rodauth = instance.rodauth 428 429 view_opts = rodauth.send(:loaded_templates).map do |page| 430 rodauth.send(:_view_opts, page) 431 end 432 view_opts << rodauth.send(:button_opts, '', {}) 433 434 view_opts.each do |opts| 435 instance.send(:retrieve_template, opts).send(:compiled_method, opts[:locals].keys.sort_by(&:to_s)) 436 end 437 438 nil 439 end
rodauth(name=nil)
[show source]
# File lib/rodauth.rb 421 def rodauth(name=nil) 422 opts[:rodauths][name] 423 end