forgeplus/app/views/action/node_inputs/_node_input.json.jbuilder

7 lines
254 B
Ruby

json.extract! node_input, :id, :name, :input_type, :description
if node_input.input_type.to_s == "select"
json.select node.action_node_selects do |node_select|
json.partial! "node_select", locals: { node_select: node_select, node: node }
end
end