Project

General

Profile

Actions

Refactor #3540

open

Change pluck('table.column') back to pluck(:column)

Added by Dominic Cleal over 10 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

For Rails 3.2.8 compatibility, we've changed a few instance of pluck(:column) to specify the table name to remove ambiguity (which 3.2.13 and higher can cope with). These can be reverted on Rails 4 or similar.


Related issues 1 (0 open1 closed)

Related to Foreman - Tracker #3157: Rails 4.1 upgrade tasksClosed09/27/2013

Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

Actions #2

Updated by Dominic Cleal over 10 years ago

b1e56e3c62535fd89ed4e226c56961cb5e8a3e3e #3538
65f764d6081b04cd03fa56a78e6281b5221b0bac #2579

Actions #4

Updated by Dominic Cleal over 10 years ago

  • Subject changed from Change pluck('table.column') back to pluck('column') to Change pluck('table.column') back to pluck(:column')
  • Description updated (diff)

Oops, thanks Petr. The string was laziness, I hadn't realised it was different!

Actions #5

Updated by Dominic Cleal over 10 years ago

  • Subject changed from Change pluck('table.column') back to pluck(:column') to Change pluck('table.column') back to pluck(:column)
  • Description updated (diff)
Actions #6

Updated by Ohad Levy over 9 years ago

  • translation missing: en.field_release set to 21
Actions #7

Updated by Ohad Levy over 9 years ago

  • translation missing: en.field_release deleted (21)
Actions #8

Updated by Tom Caspy over 9 years ago

I'm not sure I want this.
specifying the table name in situations where there's a join makes a lot of sense to me. it's more verbose, and feels right to me. let's keep it like it is.

Actions #9

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2639 added
  • Pull request deleted ()
Actions #10

Updated by Dominic Cleal over 8 years ago

Actions #11

Updated by Dominic Cleal over 8 years ago

Actions #12

Updated by Dominic Cleal over 8 years ago

  • Status changed from Ready For Testing to New
  • Pull request deleted (https://github.com/theforeman/foreman/pull/2639)
Actions

Also available in: Atom PDF