aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorChris McGrath <chris@octopod.info>2013-01-17 16:01:19 +0000
committerChris McGrath <chris@octopod.info>2013-01-17 16:01:19 +0000
commit60289ab659a12d1297b9f94e12cd1a9b06fd8652 (patch)
treeeb8ee48f32d3d9c4c5ae663dfd3b5eb79bd39c08 /actionpack/lib/action_view/helpers
parent6bb784eab0d286d1966c12e1bacc793113d6fbae (diff)
downloadrails-60289ab659a12d1297b9f94e12cd1a9b06fd8652.tar.gz
rails-60289ab659a12d1297b9f94e12cd1a9b06fd8652.tar.bz2
rails-60289ab659a12d1297b9f94e12cd1a9b06fd8652.zip
Don't change the original i18n data
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index 3af9116135..10748aacf4 100644
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -880,7 +880,7 @@ module ActionView
def translated_date_order
date_order = I18n.translate(:'date.order', :locale => @options[:locale], :default => [])
- date_order.map! { |element| element.to_sym }
+ date_order = date_order.map { |element| element.to_sym }
forbidden_elements = date_order - [:year, :month, :day]
if forbidden_elements.any?