Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6017 from larzconwell/remove_sanitize_dom_id

Removed the sanitize_dom_id method
  • Loading branch information...
commit 7bb7f0cb0189ddd11fc5bc9c5045f41c194cd99c 2 parents de6d94f + c8eeb9f
@jeremy jeremy authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 actionpack/lib/action_controller/record_identifier.rb
View
7 actionpack/lib/action_controller/record_identifier.rb
@@ -75,12 +75,7 @@ def dom_id(record, prefix = nil)
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
Please sign in to comment.
Something went wrong with that request. Please try again.