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