Skip to content

Commit

Permalink
Reload cached templates when a new handler is registered
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Jun 15, 2008
1 parent b415538 commit f31651b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actionpack/lib/action_view/template_handlers.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def self.extended(base)
# return the rendered template as a string. # return the rendered template as a string.
def register_template_handler(extension, klass) def register_template_handler(extension, klass)
@@template_handlers[extension.to_sym] = klass @@template_handlers[extension.to_sym] = klass
ActionView::TemplateFinder.reload!
end end


def template_handler_extensions def template_handler_extensions
Expand Down

0 comments on commit f31651b

Please sign in to comment.