From 10faf204b712763f05a2b3155a4fd9c5338f1fb2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 25 Feb 2005 22:07:50 +0000 Subject: Tagged the 0.10.0 release git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/date_helper.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'actionpack/lib/action_view/helpers') 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} -- cgit v1.2.3