mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
No need to call super here. Use yield instead block.call
This commit is contained in:
parent
b8c565fbd6
commit
4bce8e3c75
1 changed files with 2 additions and 3 deletions
|
@ -41,9 +41,8 @@ module ActionDispatch
|
|||
end
|
||||
end
|
||||
|
||||
def initialize(*args, &block)
|
||||
super(*args)
|
||||
block.call(self) if block_given?
|
||||
def initialize(*args)
|
||||
yield(self) if block_given?
|
||||
end
|
||||
|
||||
def insert(index, *args, &block)
|
||||
|
|
Loading…
Reference in a new issue