Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix typo

  • Loading branch information...
commit 36ee2bafec9f38fc3de404d7708f27a66960ee10 1 parent bf5cf5d
@asanghi asanghi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activemodel/lib/active_model/validations/callbacks.rb
View
2  activemodel/lib/active_model/validations/callbacks.rb
@@ -41,7 +41,7 @@ def after_validation(*args, &block)
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

0 comments on commit 36ee2ba

Please sign in to comment.
Something went wrong with that request. Please try again.