mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Everything responds to #to_param
This commit is contained in:
parent
8d24a029df
commit
9a0e443719
1 changed files with 1 additions and 3 deletions
|
@ -29,10 +29,8 @@ module ActiveSupport
|
|||
key.cache_key
|
||||
when key.is_a?(Array)
|
||||
key.collect { |element| expand_cache_key(element) }.to_param
|
||||
when key.respond_to?(:to_param)
|
||||
when key
|
||||
key.to_param
|
||||
else
|
||||
key
|
||||
end.to_s
|
||||
|
||||
expanded_cache_key
|
||||
|
|
Loading…
Reference in a new issue