mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
update this for a change in the core method
This commit is contained in:
@@ -133,7 +133,7 @@ module ActiveModel
|
||||
def validate_on_#{type}(*args, &block)
|
||||
msg = "validate_on_#{type} is deprecated. Please use validate(args, :on => :#{type})"
|
||||
ActiveSupport::Deprecation.warn(msg, caller)
|
||||
options = args.last || {}
|
||||
options = args.extract_options!
|
||||
options[:on] = :#{type}
|
||||
validate(args.push(options), &block)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user