Sha256: 1c02aa13295e99658bcdb5cc233566cb12771287951cb30cc0ce1b06015aea31

Contents?: true

Size: 289 Bytes

Versions: 14

Compression:

Stored size: 289 Bytes

Contents

json.user do
  json.partial! 'user', user: @user

  @user.fields.each do |key, field|
    json.set! key, field.value
  end
end

if params[:action] == 'show'
  json.meta do
    json.fields @user.fields do |key, field|
      json.name field.name
      json.kind field.kind
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_api-0.12.1 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.12.0 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.12.0.beta.1 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.11.2 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.11.1 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.11.0.beta.2 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.11.0.beta.1 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.10.4 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.10.3 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.10.2 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.10.1 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.10.0 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.10.0.beta.5 app/views/push_type/api/users/show.json.jbuilder
push_type_api-0.10.0.beta.3 app/views/push_type/api/users/show.json.jbuilder