1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Removed the sanitize_dom_id method because HTML5 doctype let's us use anything except nothing and whitespace for id's

This commit is contained in:
Larz Conwell 2012-04-27 12:25:21 -04:00
parent 8de4d71f5d
commit c8eeb9f45a

View file

@ -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