<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>考えるメモ</anon>
  </categories>
  <description>ただのコラム （この話を題材にする）環境 $ bin/rails -v Rails 5.2.2 TL;DR with_indifferent_accessは対象のハッシュのキーをシンボルでも文字列でも対応できるようにするもの ただし、両方使えるようにすると懸念が増えるので、 deep_symbolize_keys もしくは deep_stringify_keys でいずれかに統一するほうがブレなくて良いと思われる。 同一スコープ内（メソッドの中など）であれば、指定の方法を統一すればいい 戻り値でも、メソッドの作り手側が統一をしてあげればいい 前提としてwith_indifferent_acce…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2019%2F08%2F18%2F000000&quot; title=&quot;Railsで with_indifferent_access を使うときは一呼吸おいて考えて欲しい - コード日進月歩&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-18 00:00:00</published>
  <title>Railsで with_indifferent_access を使うときは一呼吸おいて考えて欲しい</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2019/08/18/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
