UPDATE: Now a gem: https://github.com/henrik/activemodel-with_conditions
Rails with_options
will overwrite if
and unless
conditions. So this:
with_options(if: :outer_1?, unless: :outer_2?) do
validates :method, if: :inner_1?, unless: :inner_2?
end