Sha256: fd456e360c322f570d86393d538c457b803953f442e025beb2e0751e7e502bd2
Contents?: true
Size: 302 Bytes
Versions: 4
Compression:
Stored size: 302 Bytes
Contents
included = response_included(local_assigns[:included]) if included.present? json.included(included.values) do |(resource, template)| template ||= resource.class.to_s.underscore.singularize json.partial!("models/#{template}", locals: {object: resource, included: true}) if resource end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
apes-1.0.3 | views/_included.json.jbuilder |
apes-1.0.2 | views/_included.json.jbuilder |
apes-1.0.1 | views/_included.json.jbuilder |
apes-1.0.0 | views/_included.json.jbuilder |