Permalink
Browse files

fix typo

  • Loading branch information...
1 parent bf5cf5d commit 36ee2bafec9f38fc3de404d7708f27a66960ee10 Aditya Sanghi committed Apr 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.