aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/active_record_helper.rb
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-06-22 13:49:38 +0200
committerSven Fuchs <svenfuchs@artweb-design.de>2008-06-22 13:49:38 +0200
commit3533dc68120ed40a4ec44ed9900c9035108cfcf1 (patch)
treec1797a7ec6d078100e4c7f397f0a1e7229fc94ed /actionpack/lib/action_view/helpers/active_record_helper.rb
parent67fce4671e8bcfe2aa670a89195b20837546183a (diff)
downloadrails-3533dc68120ed40a4ec44ed9900c9035108cfcf1.tar.gz
rails-3533dc68120ed40a4ec44ed9900c9035108cfcf1.tar.bz2
rails-3533dc68120ed40a4ec44ed9900c9035108cfcf1.zip
check self.locale instead of request.locale in helpers
Diffstat (limited to 'actionpack/lib/action_view/helpers/active_record_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/active_record_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/active_record_helper.rb b/actionpack/lib/action_view/helpers/active_record_helper.rb
index 5ad9d5f76d..716e303a5d 100644
--- a/actionpack/lib/action_view/helpers/active_record_helper.rb
+++ b/actionpack/lib/action_view/helpers/active_record_helper.rb
@@ -160,7 +160,7 @@ module ActionView
count = objects.inject(0) {|sum, object| sum + object.errors.count }
locale = options[:locale]
- locale ||= request.locale if respond_to?(:request)
+ locale ||= self.locale if respond_to?(:locale)
unless count.zero?
html = {}