mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix typo
This commit is contained in:
parent
bf5cf5db86
commit
36ee2bafec
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module ActiveModel
|
|||
options[:prepend] = true
|
||||
options[:if] = Array.wrap(options[:if])
|
||||
options[:if] << "!halted"
|
||||
options[:if].unsfhit("self.validation_context == :#{options[:on]}") if options[:on]
|
||||
options[:if].unshift("self.validation_context == :#{options[:on]}") if options[:on]
|
||||
set_callback(:validation, :after, *(args << options), &block)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue