Keith Schacht’s Weblog

Subscribe

with_options is some nice syntax sugar in Rails. When a series of validations (in an ActiveRecord model) all share the same conditional or when a series of before_actions (in a controller) do, with_options is a nice grouping.