Skip to content
Browse files

Fixes issue with hash ordering on 1.8 rubies

  • Loading branch information...
1 parent 68c124a commit eaa893c10c26717f93b491346d855970e701f119 @alindeman alindeman committed Mar 5, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/zonebie.rb
View
6 lib/zonebie.rb
@@ -6,7 +6,11 @@ class << self
def backend
unless @backend
- @backend = @backends.values.detect(&:usable?)
+ @backend = if @backends[:activesupport].usable?
+ @backends[:activesupport]
+ else
+ @backends.values.detect(&:usable?)
+ end
end
@backend

0 comments on commit eaa893c

Please sign in to comment.
Something went wrong with that request. Please try again.