Public Instance methods
freeze()
[show source]
# File lib/rodauth.rb 542 def freeze 543 opts[:rodauths].each_value(&:freeze) 544 opts[:rodauths].freeze 545 super 546 end
precompile_rodauth_templates()
[show source]
# File lib/rodauth.rb 526 def precompile_rodauth_templates 527 instance = allocate 528 rodauth = instance.rodauth 529 530 view_opts = rodauth.send(:loaded_templates).map do |page| 531 rodauth.send(:_view_opts, page) 532 end 533 view_opts << rodauth.send(:button_opts, '', OPTS) 534 535 view_opts.each do |opts| 536 instance.send(:retrieve_template, opts).send(:compiled_method, opts[:locals].keys.sort_by(&:to_s)) 537 end 538 539 nil 540 end
rodauth(name=nil)
[show source]
# File lib/rodauth.rb 522 def rodauth(name=nil) 523 opts[:rodauths][name] 524 end