Our app uses Rails version "3.2.13", in which the pluck
method only allows one argument. I really want the Rails 4 (updating the Rails version is not a possibility now) pluck capabilities of allowing multiple arguments, ie Order.pluck(:created_at, :id)
.
I tried by overriding by putting the newer source (http://ift.tt/1LzpmKn) in an initializer
. No change. Any ideas?
Aucun commentaire:
Enregistrer un commentaire