app/views/moves/_move.json.jbuilder
# frozen_string_literal: true
json.extract! move, :id,
:name,
:description,
:rating,
:six_and_under,
:seven_to_nine,
:ten_plus,
:twelve_plus,
:created_at,
:updated_at
json.playbook_name move.playbook&.name || ''
json.url move_url(move, format: :json)