aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-03-13 19:18:45 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-03-13 19:18:45 +0000
commitd7f84f61a28ff308b0403ec9940dadc6e2894b41 (patch)
tree0fe627a8f0283da3f7afd698eed2b98390e0c8de /actionpack/lib/action_view/helpers
parent36a14187204c5106e1475bf5b67d26fd992bcafe (diff)
downloadrails-d7f84f61a28ff308b0403ec9940dadc6e2894b41.tar.gz
rails-d7f84f61a28ff308b0403ec9940dadc6e2894b41.tar.bz2
rails-d7f84f61a28ff308b0403ec9940dadc6e2894b41.zip
Remove unused to_date_tag. Closes #11237 [danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9024 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 9db4918d4e..cc3c09d50c 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -450,7 +450,6 @@ module ActionView
DEFAULT_FIELD_OPTIONS = { "size" => 30 }.freeze unless const_defined?(:DEFAULT_FIELD_OPTIONS)
DEFAULT_RADIO_OPTIONS = { }.freeze unless const_defined?(:DEFAULT_RADIO_OPTIONS)
DEFAULT_TEXT_AREA_OPTIONS = { "cols" => 40, "rows" => 20 }.freeze unless const_defined?(:DEFAULT_TEXT_AREA_OPTIONS)
- DEFAULT_DATE_OPTIONS = { :discard_type => true }.freeze unless const_defined?(:DEFAULT_DATE_OPTIONS)
def initialize(object_name, method_name, template_object, local_binding = nil, object = nil)
@object_name, @method_name = object_name.to_s.dup, method_name.to_s.dup
@@ -531,15 +530,6 @@ module ActionView
tag("input", options) << tag("input", "name" => options["name"], "type" => "hidden", "value" => options['disabled'] && checked ? checked_value : unchecked_value)
end
- def to_date_tag()
- defaults = DEFAULT_DATE_OPTIONS.dup
- date = value(object) || Date.today
- options = Proc.new { |position| defaults.merge(:prefix => "#{@object_name}[#{@method_name}(#{position}i)]") }
- html_day_select(date, options.call(3)) +
- html_month_select(date, options.call(2)) +
- html_year_select(date, options.call(1))
- end
-
def to_boolean_select_tag(options = {})
options = options.stringify_keys
add_default_name_and_id(options)