aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-12-02 21:40:56 +0000
committerFrancis Irving <francis@mysociety.org>2009-12-02 21:40:56 +0000
commit427ce2f9623f12510062aafc9377dde9d210eeca (patch)
tree0ef3c9daf2e7c74a1abf877eb6fc7dfbbaa86a6d
parent223bc4b85c83a147833a16e50be083536fc062f4 (diff)
Setting default_error_messages doesn't work any more, and we don't need
it anyway really - should set all error messages anyway explicitly in the model to make them nice.
-rw-r--r--config/environment.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/config/environment.rb b/config/environment.rb
index fb9c31b60..f3a1b1668 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -79,8 +79,6 @@ end
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register "application/x-mobile", :mobile
-# Validation error messages
-ActiveRecord::Errors.default_error_messages[:blank] = "must be filled in"
# Monkeypatch! Use SPAN instead of DIV. See http://dev.rubyonrails.org/ticket/2210
ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| %(<span class="fieldWithErrors">#{html_tag}</span>)}