Reduce proc call

This commit is contained in:
Akira Matsuda 2019-09-14 00:55:45 +09:00
parent ed1e719914
commit 090aa9e535
1 changed files with 3 additions and 3 deletions

View File

@ -286,9 +286,9 @@ module ActionDispatch
DOMAIN_REGEXP = /[^.]*\.([^.]*|..\...|...\...)$/
def self.build(req, cookies)
new(req).tap do |jar|
jar.update(cookies)
end
jar = new(req)
jar.update(cookies)
jar
end
attr_reader :request