Defect #34986

Ruby 3.0 fix super calls

Added by Pavel Rosický 6 months ago. Updated 6 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Ruby support
Target version:-
Resolution:Fixed Affected version:

Description

https://github.com/rails/rails/blob/f855139f3d2bb9b032613279d0adfbd6a77a2d07/activerecord/lib/active_record/persistence.rb#L487

https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

there're failures on Ruby 3.0 due to kwargs separation, these two places should be changed either to accept kwargs instead of args or ignore them.

note that Ruby 3.0 isn't supported without Rails patches #29914

ruby3.diff Magnifier (863 Bytes) Pavel Rosický, 2021-03-30 12:14


Related issues

Related to Redmine - Feature #34992: Ruby 3.0 support Resolved

Associated revisions

Revision 20912
Added by Go MAEDA 6 months ago

Ruby 3.0: Fix `super` calls (#34992, #34986).

Patch by Pavel Rosický.

History

#1 Updated by Go MAEDA 6 months ago

#2 Updated by Go MAEDA 6 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch as a part of #34992. Thank you.

Also available in: Atom PDF