memoize correctly ;)
This commit is contained in:
parent
6001cea5d7
commit
f8088d7def
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue