Keith Schacht’s Weblog

Subscribe

💡 TIL: with_defaults is a better named alias

28th April 2025

`with_defaults` is the same as `reverse_merge` in rails but much better named.

More recent articles

This is with_defaults is a better named alias by Keith Schacht, posted on 28th April 2025.

Part of series Today I Learned

  1. Ruby's clamp method reduces conditionals - Feb. 24, 2025, 3:19 p.m.
  2. React in Rails is gaining momentum with Inertia - April 14, 2025, 11:44 p.m.
  3. Bundler can be configured to auto install - April 28, 2025, 3:35 p.m.
  4. with_defaults is a better named alias - April 28, 2025, 3:36 p.m.

Previous: Bundler can be configured to auto install