Displaying 1 result from an estimated 1 matches for "default_template_handlers".
2012 Sep 14
1
calling method on base intended to simulate initialize on instances?
...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
end
def register_default_template_handler(extension, klass)
register_template_handler(extension, klass)
@@default_template_handlers = klass
end
def register_template_...