Sha256: 9c834b36be09e691a123f31a2102b392bc555413b795f748b07f161236779deb

Contents?: true

Size: 237 Bytes

Versions: 13

Compression:

Stored size: 237 Bytes

Contents

# frozen_string_literal: true

# returned the changed resource if frontend needs it
decorated = decorate resource
all_field_names =
  [decorated.primary_key].concat(decorated.form_field_names).uniq
json.call(decorated, *all_field_names)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/form.json.jbuilder
wallaby-7.0.0 app/views/wallaby/resources/form.json.jbuilder
wallaby-7.0.0.beta2 app/views/wallaby/resources/form.json.jbuilder
wallaby-7.0.0.beta1 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.1.6 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.1.5 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.1.4 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.1.3 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.1.2 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.1.1 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.1.0 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.0.2 app/views/wallaby/resources/form.json.jbuilder
wallaby-6.0.1 app/views/wallaby/resources/form.json.jbuilder