aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorEdward Tsech <edtsech@gmail.com>2012-05-08 11:08:15 +0200
committerEdward Tsech <edtsech@gmail.com>2012-05-08 11:08:15 +0200
commitb3bd01c154e8294cbd0ecaa2aa0b7b3ac322592c (patch)
tree4d9a56b94ba2a11f5793218048c29b55e9d02e49 /actionpack/lib/abstract_controller
parente8d1f10ac42b171b8d0e73a6a59f7e7e4b094a23 (diff)
downloadrails-b3bd01c154e8294cbd0ecaa2aa0b7b3ac322592c.tar.gz
rails-b3bd01c154e8294cbd0ecaa2aa0b7b3ac322592c.tar.bz2
rails-b3bd01c154e8294cbd0ecaa2aa0b7b3ac322592c.zip
Add annotaion for class_eval in AbstractController#helper_method [ci skip]
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/helpers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/abstract_controller/helpers.rb b/actionpack/lib/abstract_controller/helpers.rb
index 77cc4c07d9..4e0672d590 100644
--- a/actionpack/lib/abstract_controller/helpers.rb
+++ b/actionpack/lib/abstract_controller/helpers.rb
@@ -49,9 +49,9 @@ module AbstractController
meths.each do |meth|
_helpers.class_eval <<-ruby_eval, __FILE__, __LINE__ + 1
- def #{meth}(*args, &blk)
- controller.send(%(#{meth}), *args, &blk)
- end
+ def #{meth}(*args, &blk) # def current_user(*args, &blk)
+ controller.send(%(#{meth}), *args, &blk) # controller.send(:current_user, *args, &blk)
+ end # end
ruby_eval
end
end