Sha256: 5c44aca89daed4faf046f5f1b54f8cb5570e1fa91c0125aca4468158db58d3b8

Contents?: true

Size: 267 Bytes

Versions: 14

Compression:

Stored size: 267 Bytes

Contents

json.nodes @nodes do |node|
  json.partial! 'node', node: node
end

json.meta do
  json.partial! 'push_type/api/shared/pagination', collection: @nodes

  if params[:action] == 'index'
    json.child_nodes @parent ? @parent.child_nodes : PushType.root_nodes
  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/nodes/index.json.jbuilder
push_type_api-0.12.0 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.12.0.beta.1 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.11.2 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.11.1 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.11.0.beta.2 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.11.0.beta.1 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.10.4 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.10.3 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.10.2 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.10.1 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.10.0 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.10.0.beta.5 app/views/push_type/api/nodes/index.json.jbuilder
push_type_api-0.10.0.beta.3 app/views/push_type/api/nodes/index.json.jbuilder