memoize correctly ;)

This commit is contained in:
Yehuda Katz 2009-03-03 17:20:57 -08:00
parent 6001cea5d7
commit f8088d7def
1 changed files with 5 additions and 2 deletions

View File

@ -14,8 +14,11 @@ module AbstractController
end end
def _action_view def _action_view
av = super @_action_view ||= begin
av.helpers.send(:include, master_helper_module) av = super
av.helpers.send(:include, master_helper_module)
av
end
end end
module ClassMethods module ClassMethods