From c8eeb9f45a2fcd00431687ad4261cc43f10e8c09 Mon Sep 17 00:00:00 2001 From: Larz Conwell Date: Fri, 27 Apr 2012 12:25:21 -0400 Subject: Removed the sanitize_dom_id method because HTML5 doctype let's us use anything except nothing and whitespace for id's --- actionpack/lib/action_controller/record_identifier.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb index 5c40889f6b..e7af3f5b8d 100644 --- a/actionpack/lib/action_controller/record_identifier.rb +++ b/actionpack/lib/action_controller/record_identifier.rb @@ -75,12 +75,7 @@ module ActionController def record_key_for_dom_id(record) record = record.to_model if record.respond_to?(:to_model) key = record.to_key - key ? sanitize_dom_id(key.join('_')) : key - end - - # Replaces characters that are invalid in HTML DOM ids with valid ones. - def sanitize_dom_id(candidate_id) - candidate_id # TODO implement conversion to valid DOM id values + key ? key.join('_') : key end end end -- cgit v1.2.3