aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorLarz Conwell <larzconwell@gmail.com>2012-04-27 12:25:21 -0400
committerLarz Conwell <larzconwell@gmail.com>2012-04-27 12:25:21 -0400
commitc8eeb9f45a2fcd00431687ad4261cc43f10e8c09 (patch)
tree44e168914e8e7f247b139bd4707e7195233095ca /actionpack/lib
parent8de4d71f5dab243f2c66e1695ccfabc0bbf98c9b (diff)
downloadrails-c8eeb9f45a2fcd00431687ad4261cc43f10e8c09.tar.gz
rails-c8eeb9f45a2fcd00431687ad4261cc43f10e8c09.tar.bz2
rails-c8eeb9f45a2fcd00431687ad4261cc43f10e8c09.zip
Removed the sanitize_dom_id method because HTML5 doctype let's us use anything except nothing and whitespace for id's
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/record_identifier.rb7
1 files changed, 1 insertions, 6 deletions
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