search for: default_template_handl

Displaying 1 result from an estimated 1 matches for "default_template_handl".

2012 Sep 14
1
calling method on base intended to simulate initialize on instances?
...dule Handlers autoload :ERB, ''action_view/template/handlers/erb'' autoload :Builder, ''action_view/template/handlers/builder'' autoload :Raw, ''action_view/template/handlers/raw'' def self.extended(base) base.register_default_template_handler :erb, ERB.new base.register_template_handler :builder, Builder.new base.register_template_handler :raw, Raw.new end @@template_handlers = {} @@default_template_handlers = nil def self.extensions @@template_extensions ||= @@template_handlers.keys...