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