Sha256: 5fe4be84be2d216a4a43f9018737c29f15cdd7128734633f5563d3c5d753be18
Contents?: true
Size: 248 Bytes
Versions: 38
Compression:
Stored size: 248 Bytes
Contents
module Agilibox::PluckDistinct extend ActiveSupport::Concern class_methods do def pluck_distinct(column) all .reorder(column) .select(column) .distinct .pluck(column) end end # class_methods end
Version data entries
38 entries across 38 versions & 1 rubygems