24
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Hashに対して再帰的にsymbolize_keysとかする簡単な方法

Posted at

情報が少ないのでメモ。

symbolized_keysで検索すると、「Rails symbolize_keys 再帰的」みたいな記事が出てくるけど、
実はrails4からdeep_symbolize_keysとか、deep_mergeとかdeepなんちゃらって便利なメソッドがいくつか実装されてます。

便利!

googleでdeep_symbolize_keysを検索すると、約1,150件・・・少ない)

24
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?