Closed h6ah4i closed 1 year ago
Hi. I noticed that ActiveHash's #pluck method behaves differently from ActiveRecord one. This pull request fixes the issue.
#pluck
Category.pluck(:id, :name, :language) => [ [[1, "US"], "English"], [[2, "Canada"], "English"], [[3, "Mexico"], "Spanish"] ]
Category.pluck(:id, :name, :language) => [ [1, "US", "English"], [2, "Canada", "English"], [3, "Mexico", "Spanish"] ]
Hi. I noticed that ActiveHash's
#pluck
method behaves differently from ActiveRecord one. This pull request fixes the issue.Current behavior (ActiveHash v3.1.1)
Expected behavior (same as ActiveRecord)