Skip to content
Browse files

Don't change the original i18n data

  • Loading branch information...
1 parent 6bb784e commit 60289ab659a12d1297b9f94e12cd1a9b06fd8652 @chrismcg chrismcg committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/date_helper.rb
View
2 actionpack/lib/action_view/helpers/date_helper.rb
@@ -880,7 +880,7 @@ def date_order
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?

0 comments on commit 60289ab

Please sign in to comment.
Something went wrong with that request. Please try again.