diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-04-29 11:03:04 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-04-29 11:03:04 -0700 |
commit | 7bb7f0cb0189ddd11fc5bc9c5045f41c194cd99c (patch) | |
tree | b5eaef759251dc785456740ffd8c8c9f02fb72a2 /actionpack/lib | |
parent | de6d94f9fb86f9566818a0b8af99f745b3d50fe5 (diff) | |
parent | c8eeb9f45a2fcd00431687ad4261cc43f10e8c09 (diff) | |
download | rails-7bb7f0cb0189ddd11fc5bc9c5045f41c194cd99c.tar.gz rails-7bb7f0cb0189ddd11fc5bc9c5045f41c194cd99c.tar.bz2 rails-7bb7f0cb0189ddd11fc5bc9c5045f41c194cd99c.zip |
Merge pull request #6017 from larzconwell/remove_sanitize_dom_id
Removed the sanitize_dom_id method
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/record_identifier.rb | 7 |
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 |