diff options
author | Xavier Noria <fxn@hashref.com> | 2010-02-14 22:05:02 +0100 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-14 13:09:39 -0800 |
commit | 7cff54f5d3ae2e364f0d147ceb86ea701b21389c (patch) | |
tree | e885f35ec6147e23490ce52b5123a20e640c3e14 /actionpack/lib/abstract_controller | |
parent | 38eb2f145432429d866ab62f796dd7055d1c524a (diff) | |
download | rails-7cff54f5d3ae2e364f0d147ceb86ea701b21389c.tar.gz rails-7cff54f5d3ae2e364f0d147ceb86ea701b21389c.tar.bz2 rails-7cff54f5d3ae2e364f0d147ceb86ea701b21389c.zip |
name.blank? -> anonymous?
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r-- | actionpack/lib/abstract_controller/helpers.rb | 3 |
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 |