aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-11-08 21:55:43 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-11-08 22:02:57 -0800
commit20cdaddfd27dfeef5c853e85fafa4e13b6da05f3 (patch)
tree6a102d87cb71ac8fbc7dafeee2ed7e185d68b90d /activesupport/lib/active_support/cache.rb
parent7ad461b44dabb586fbad190493ac4ecd96104597 (diff)
downloadrails-20cdaddfd27dfeef5c853e85fafa4e13b6da05f3.tar.gz
rails-20cdaddfd27dfeef5c853e85fafa4e13b6da05f3.tar.bz2
rails-20cdaddfd27dfeef5c853e85fafa4e13b6da05f3.zip
Ruby 1.9.2: work around changes to flatten and nil.to_str
Diffstat (limited to 'activesupport/lib/active_support/cache.rb')
-rw-r--r--activesupport/lib/active_support/cache.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index b91ae65e9f..2f714c62ee 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -43,7 +43,8 @@ module ActiveSupport
# ActiveSupport::Cache.lookup_store(MyOwnCacheStore.new)
# # => returns MyOwnCacheStore.new
def self.lookup_store(*store_option)
- store, *parameters = *([ store_option ].flatten)
+ store = store_option.shift
+ parameters = store_option
case store
when Symbol