$30 off During Our Annual Pro Sale. View Details »

XXXSerializer#to_json を地道に置き換えている話

XXXSerializer#to_json を地道に置き換えている話

Shintani Teppei

September 07, 2023
Tweet

More Decks by Shintani Teppei

Other Decks in Technology

Transcript

  1. adapter option Λ൓өͰ͖ͳ͍ͱ͸ʁ first_name, last_name Λ field ʹ࣋ͭ UserSerializer ͕ଘࡏ͢ΔͱԾఆɻ

    key ͕ lower camel ͷ JSON Λग़ྗ͍ͨ͠ɻ firstName: “...”, lastName: “...” ʹ͍ͨ͠ʂ
  2. ·ͱΊ • XXXSerializer#to_json Ͱ JSON γϦΞϥΠζΛߦ͏ͱ adapter option ͕൓ө͞Εͳ͍ͷͰ README

    ʹॻ͍ͯ͋Δํ๏ͰγϦΞ ϥΠζ͠Α͏ɻ • committee-rails ࢖ͬͯΔํ͍ͨΒ࢖͍উखΛڭ͍͑ͯͩ͘͞ɻ