Sha256: 5bd54fed8269988ea65e29dc074da0981e5c298ac3596c5a2e1d2706ea72d79b
Contents?: true
Size: 351 Bytes
Versions: 13
Compression:
Stored size: 351 Bytes
Contents
# frozen_string_literal: true # custom json to serve the frontend javascript auto_select feature decorated_collection = decorate(collection) json_fields = json_fields_of decorated_collection json.array! decorated_collection do |decorated| json.id decorated.primary_key_value json.label decorated.to_label json.call decorated, *json_fields end
Version data entries
13 entries across 13 versions & 1 rubygems