Remove ruby 2.7 deprecation (#870)
Co-authored-by: Cliff Braton <cliff.braton@gmail.com>
This commit is contained in:
parent
89ec4b70f4
commit
6a3bf0dae9
|
@ -7,7 +7,7 @@ module Draper
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def delegate(*methods)
|
def delegate(*methods)
|
||||||
options = methods.extract_options!
|
options = methods.extract_options!
|
||||||
super *methods, options.reverse_merge(to: :object)
|
super(*methods, **options.reverse_merge(to: :object))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue