diff options
author | Aditya Sanghi <asanghi@me.com> | 2011-04-29 09:53:02 +0530 |
---|---|---|
committer | Aditya Sanghi <asanghi@me.com> | 2011-04-29 09:53:02 +0530 |
commit | 36ee2bafec9f38fc3de404d7708f27a66960ee10 (patch) | |
tree | 6c60edb7c01a80a27383790628cbce10f08a810d /activemodel | |
parent | bf5cf5db86fa0aeb818d32541a35310de992f426 (diff) | |
download | rails-36ee2bafec9f38fc3de404d7708f27a66960ee10.tar.gz rails-36ee2bafec9f38fc3de404d7708f27a66960ee10.tar.bz2 rails-36ee2bafec9f38fc3de404d7708f27a66960ee10.zip |
fix typo
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/validations/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/callbacks.rb b/activemodel/lib/active_model/validations/callbacks.rb index f187d6f378..22a77320dc 100644 --- a/activemodel/lib/active_model/validations/callbacks.rb +++ b/activemodel/lib/active_model/validations/callbacks.rb @@ -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 |