aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-25 22:07:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-25 22:07:50 +0000
commit10faf204b712763f05a2b3155a4fd9c5338f1fb2 (patch)
treedd6a3680d495ae43c64b4d58169b96e37f2aac74 /actionpack/lib
parent7a5ff308eb5f45dcd8f7a25f6915e78f3b9528a0 (diff)
downloadrails-10faf204b712763f05a2b3155a4fd9c5338f1fb2.tar.gz
rails-10faf204b712763f05a2b3155a4fd9c5338f1fb2.tar.bz2
rails-10faf204b712763f05a2b3155a4fd9c5338f1fb2.zip
Tagged the 0.10.0 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-xactionpack/lib/action_view/helpers/date_helper.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index c989100bbc..03a34c93f1 100755
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -221,12 +221,8 @@ module ActionView
options_with_prefix = Proc.new { |position| options.update({ :prefix => "#{@object_name}[#{@method_name}(#{position}i)]" }) }
date = options[:include_blank] ? (value || 0) : (value || Date.today)
- date_select = ""
-
- if options[:month_before_year] # For backwards compatibility
- options[:order] = [:month, :year, :day]
- end
-
+ date_select = ""
+ options[:order] = [:month, :year, :day] if options[:month_before_year] # For backwards compatibility
options[:order] ||= [:year, :month, :day]
position = {:year => 1, :month => 2, :day => 3}