diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-01-18 13:06:42 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-01-18 13:06:42 +0530 |
commit | 25991b94c7cb3d1763b79c67dfadf2aec974eebe (patch) | |
tree | 013c506d5f0bad6d3440dbeb733ec4fd4278c8eb | |
parent | 86cb1227d52f8f954a4f8f2208899eb02fb76283 (diff) | |
download | rails-25991b94c7cb3d1763b79c67dfadf2aec974eebe.tar.gz rails-25991b94c7cb3d1763b79c67dfadf2aec974eebe.tar.bz2 rails-25991b94c7cb3d1763b79c67dfadf2aec974eebe.zip |
Use existing constant for joining instead of '_'
-rw-r--r-- | actionview/lib/action_view/record_identifier.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/record_identifier.rb b/actionview/lib/action_view/record_identifier.rb index c8484bed34..6c6e69101b 100644 --- a/actionview/lib/action_view/record_identifier.rb +++ b/actionview/lib/action_view/record_identifier.rb @@ -103,7 +103,7 @@ module ActionView # make sure yourself that your dom ids are valid, in case you overwrite this method. def record_key_for_dom_id(record) key = convert_to_model(record).to_key - key ? key.join('_') : key + key ? key.join(JOIN) : key end end end |