aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-02-14 22:05:02 +0100
committerYehuda Katz <yehudakatz@YK.local>2010-02-14 13:09:39 -0800
commit7cff54f5d3ae2e364f0d147ceb86ea701b21389c (patch)
treee885f35ec6147e23490ce52b5123a20e640c3e14
parent38eb2f145432429d866ab62f796dd7055d1c524a (diff)
downloadrails-7cff54f5d3ae2e364f0d147ceb86ea701b21389c.tar.gz
rails-7cff54f5d3ae2e364f0d147ceb86ea701b21389c.tar.bz2
rails-7cff54f5d3ae2e364f0d147ceb86ea701b21389c.zip
name.blank? -> anonymous?
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
-rw-r--r--actionpack/lib/abstract_controller/helpers.rb3
1 files changed, 2 insertions, 1 deletions
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