Project

General

Profile

Refactor #33985

Tracker #33983: Cleanup core_extensions

Move identification methods to ApplicationRecord

Added by Ondřej Ezr 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

We have many methods introduced by core_extensions to ActiveRecord::Base, today Rails have the concept of ApplicationRecord, we should move those methods there instead.

Methods:
  • id_and_type
  • name_method
  • to_label

Associated revisions

Revision cc93a200 (diff)
Added by Ondřej Ezr 6 months ago

Fixes #33985 - move identifiers to ApplicationRecord

Move identifiers to ApplicationRecord from core_extensions.

History

#1 Updated by The Foreman Bot 6 months ago

  • Assignee set to Ondřej Ezr
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8945 added

#2 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 3.2.0 added

#3 Updated by Ondřej Ezr 6 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF