Skip to content

Commit

Permalink
Remove ruby 2.7 deprecation (#870)
Browse files Browse the repository at this point in the history
Co-authored-by: Cliff Braton <[email protected]>
  • Loading branch information
badlamer and codebycliff committed Jan 7, 2020
1 parent 89ec4b7 commit 6a3bf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/draper/delegation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Delegation
# @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

0 comments on commit 6a3bf0d

Please sign in to comment.