aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 15:08:30 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-20 15:08:30 +0000
commit6cd3bda32f6183f2e31a3b62e35c01655e8debc4 (patch)
tree548386522f992056a6bcb330a13c06cdb73630a6 /actionpack/lib/action_view
parent1b93da3262de157e7a1339b1b4ce3ff5c22081a5 (diff)
downloadrails-6cd3bda32f6183f2e31a3b62e35c01655e8debc4.tar.gz
rails-6cd3bda32f6183f2e31a3b62e35c01655e8debc4.tar.bz2
rails-6cd3bda32f6183f2e31a3b62e35c01655e8debc4.zip
Fixed form helpers to query Model#id_before_type_cast instead of Model#id as a temporary workaround for Ruby 1.8.2 warnings #818 [DeLynn B]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 32233d26d6..2f42a8a648 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -152,7 +152,7 @@ module ActionView
@object_name, @method_name = object_name, method_name
@template_object, @local_binding = template_object, local_binding
if @object_name.sub!(/\[\]$/,"")
- @auto_index = @template_object.instance_variable_get("@#{Regexp.last_match.pre_match}").id
+ @auto_index = @template_object.instance_variable_get("@#{Regexp.last_match.pre_match}").id_before_type_cast
end
end