ChaelCodes/HuntersKeepers

View on GitHub
app/views/moves/_move.json.jbuilder

Summary

Maintainability
Test Coverage
# 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)