mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add annotaion for class_eval in AbstractController#helper_method [ci skip]
This commit is contained in:
parent
e8d1f10ac4
commit
b3bd01c154
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue