summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 12:14:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-04 12:14:05 +0000
commit2644141a3692e62e955a521d0d683e12702cf01a (patch)
treea891d92e5807fe840aed4c38381051692a9101e3 /config/initializers
parentceb2320ef078b84182a14e240c7cd094fb4a1231 (diff)
downloadredmine-2644141a3692e62e955a521d0d683e12702cf01a.tar.gz
redmine-2644141a3692e62e955a521d0d683e12702cf01a.zip
Makes the app boot with Rails 2.2.2
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2227 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/10-patches.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index fcc091997..5fbb91abf 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -12,6 +12,6 @@ ActiveRecord::Errors.default_error_messages = {
:wrong_length => "activerecord_error_wrong_length",
:taken => "activerecord_error_taken",
:not_a_number => "activerecord_error_not_a_number"
-}
+} if ActiveRecord::Errors.respond_to?('default_error_messages=')
ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }