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
def _action_view
av = super
av.helpers.send(:include, master_helper_module)
@_action_view ||= begin
av = super
av.helpers.send(:include, master_helper_module)
av
end
end
module ClassMethods