Project

General

Profile

Refactor #21671

Replace alias_method_chain with prepend

Added by Lukas Zapletal over 4 years ago. Updated almost 4 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Branch:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Other plugins are already moving to this new Ruby 2.x feature and this is causing issues for example #14797

Stop using alias_method_chain and replace it with prepend, add a RuboCop rule that will enforce this.

https://www.justinweiss.com/articles/rails-5-module-number-prepend-and-the-end-of-alias-method-chain/

History

#1 Updated by Lukas Zapletal over 4 years ago

  • Status changed from New to Duplicate

Dupe! #21205

#2 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 166

Also available in: Atom PDF