Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add annotaion for class_eval in AbstractController#helper_method [ci …

…skip]
  • Loading branch information...
commit b3bd01c154e8294cbd0ecaa2aa0b7b3ac322592c 1 parent e8d1f10
@edtsech edtsech authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/abstract_controller/helpers.rb
View
6 actionpack/lib/abstract_controller/helpers.rb
@@ -49,9 +49,9 @@ def helper_method(*meths)
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
Please sign in to comment.
Something went wrong with that request. Please try again.