From 7cff54f5d3ae2e364f0d147ceb86ea701b21389c Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 14 Feb 2010 22:05:02 +0100 Subject: name.blank? -> anonymous? Signed-off-by: Yehuda Katz --- actionpack/lib/abstract_controller/helpers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/abstract_controller/helpers.rb b/actionpack/lib/abstract_controller/helpers.rb index 578b884a4d..9ff67cbf88 100644 --- a/actionpack/lib/abstract_controller/helpers.rb +++ b/actionpack/lib/abstract_controller/helpers.rb @@ -1,6 +1,7 @@ require 'active_support/dependencies' require 'active_support/core_ext/class/attribute' require 'active_support/core_ext/module/delegation' +require 'active_support/core_ext/module/anonymous' module AbstractController module Helpers @@ -27,7 +28,7 @@ module AbstractController def inherited(klass) helpers = _helpers klass._helpers = Module.new { include helpers } - klass.class_eval { default_helper_module! unless name.blank? } + klass.class_eval { default_helper_module! unless anonymous? } super end -- cgit v1.2.3