lib/active_model/callbacks.rb in activemodel-6.0.2.2 vs lib/active_model/callbacks.rb in activemodel-6.0.3.rc1
- old
+ new
@@ -124,10 +124,9 @@
end
end
end
private
-
def _define_before_model_callback(klass, callback)
klass.define_singleton_method("before_#{callback}") do |*args, **options, &block|
options.assert_valid_keys(:if, :unless, :prepend)
set_callback(:"#{callback}", :before, *args, options, &block)
end