From 9c8c6bf4390a60be15fa69dfdd682f82e8639bc7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 20 May 2014 12:06:59 +0200 Subject: Clarify that the other option for name_or_adapter is to be a class (the Adapter class) --- lib/active_job/queue_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/active_job/queue_adapter.rb') diff --git a/lib/active_job/queue_adapter.rb b/lib/active_job/queue_adapter.rb index 0f510530a6..8f2f8b86ea 100644 --- a/lib/active_job/queue_adapter.rb +++ b/lib/active_job/queue_adapter.rb @@ -10,7 +10,7 @@ module ActiveJob case name_or_adapter when Symbol, String load_adapter(name_or_adapter) - else + when Class name_or_adapter end end -- cgit v1.2.3