Sha256: 58d59ab2c7e8f64bd5d86f9f1ab0a4a81c3ccbe37ecd954a07c1c3603c00cdaf
Contents?: true
Size: 220 Bytes
Versions: 66
Compression:
Stored size: 220 Bytes
Contents
module Agilibox::PluckToHash extend ActiveSupport::Concern class_methods do def pluck_to_hash(*attributes) pluck(*attributes).map { |values| attributes.zip(values).to_h } end end # class_methods end
Version data entries
66 entries across 66 versions & 1 rubygems