Skip to content

Commit

Permalink
Add annotaion for class_eval in AbstractController#helper_method [ci …
Browse files Browse the repository at this point in the history
…skip]
  • Loading branch information
edtsech committed May 8, 2012
1 parent e8d1f10 commit b3bd01c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/abstract_controller/helpers.rb
Expand Up @@ -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
Expand Down

0 comments on commit b3bd01c

Please sign in to comment.