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