1
0
Fork 0
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:
Emilio Tagua 2010-09-28 15:10:55 -03:00
parent b8c565fbd6
commit 4bce8e3c75

View file

@ -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)