提交 36ee2baf 编写于 作者: A Aditya Sanghi

fix typo

上级 bf5cf5db
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册