diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-19 19:30:36 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-24 22:16:47 +0900 |
commit | 7f998540af7c3398a3dae760e3e5f0218dec8897 (patch) | |
tree | 98529e9cf79ec3c6f487adb880a601fdec380967 /actionview/lib/action_view/record_identifier.rb | |
parent | b232c51435c7da271a0b6259124435108016070e (diff) | |
download | rails-7f998540af7c3398a3dae760e3e5f0218dec8897.tar.gz rails-7f998540af7c3398a3dae760e3e5f0218dec8897.tar.bz2 rails-7f998540af7c3398a3dae760e3e5f0218dec8897.zip |
Privatize unneededly protected methods in Action View
Diffstat (limited to 'actionview/lib/action_view/record_identifier.rb')
-rw-r--r-- | actionview/lib/action_view/record_identifier.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/record_identifier.rb b/actionview/lib/action_view/record_identifier.rb index b39acfa0b5..48bea315a9 100644 --- a/actionview/lib/action_view/record_identifier.rb +++ b/actionview/lib/action_view/record_identifier.rb @@ -92,7 +92,7 @@ module ActionView end end - protected + private # Returns a string representation of the key attribute(s) that is suitable for use in an HTML DOM id. # This can be overwritten to customize the default generated string representation if desired. @@ -102,7 +102,7 @@ module ActionView # overwritten version of the method. By default, this implementation passes the key string through a # method that replaces all characters that are invalid inside DOM ids, with valid ones. You need to # make sure yourself that your dom ids are valid, in case you overwrite this method. - def record_key_for_dom_id(record) + def record_key_for_dom_id(record) # :doc: key = convert_to_model(record).to_key key ? key.join(JOIN) : key end |