Permalink
Browse files

name.blank? -> anonymous?

Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
  • Loading branch information...
fxn authored and Yehuda Katz committed Feb 14, 2010
1 parent 38eb2f1 commit 7cff54f5d3ae2e364f0d147ceb86ea701b21389c
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 ClassMethods
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

0 comments on commit 7cff54f

Please sign in to comment.