Remove ruby 2.7 deprecation (#870)

Co-authored-by: Cliff Braton <cliff.braton@gmail.com>
This commit is contained in:
Yury Druzhkov 2020-01-07 20:02:07 +03:00 committed by Cliff Braton
parent 89ec4b70f4
commit 6a3bf0dae9
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Draper
# @return [void]
def delegate(*methods)
options = methods.extract_options!
super *methods, options.reverse_merge(to: :object)
super(*methods, **options.reverse_merge(to: :object))
end
end
end