diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-01-18 12:00:17 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-01-18 12:00:17 -0200 |
commit | f3184a96d09ec2a98c7e8adbcec266663f9ba849 (patch) | |
tree | fd41dad1b83d8af9466c065bff3a5fc02624b72c /actionview | |
parent | 479b57345bfe78a768d6c6d3900d322fc815963c (diff) | |
parent | 25991b94c7cb3d1763b79c67dfadf2aec974eebe (diff) | |
download | rails-f3184a96d09ec2a98c7e8adbcec266663f9ba849.tar.gz rails-f3184a96d09ec2a98c7e8adbcec266663f9ba849.tar.bz2 rails-f3184a96d09ec2a98c7e8adbcec266663f9ba849.zip |
Merge pull request #18579 from prathamesh-sonpatki/use-existing-constant-for-join
Use existing constant for joining instead of '_'
Diffstat (limited to 'actionview')
-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 |