aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-05-20 12:06:59 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-05-20 12:06:59 +0200
commit9c8c6bf4390a60be15fa69dfdd682f82e8639bc7 (patch)
tree7f18e6fee49b84b9422772ce03dbe26e21417d20 /lib
parentfa478329507319571b578ea3dd883405d0b8d4fc (diff)
downloadrails-9c8c6bf4390a60be15fa69dfdd682f82e8639bc7.tar.gz
rails-9c8c6bf4390a60be15fa69dfdd682f82e8639bc7.tar.bz2
rails-9c8c6bf4390a60be15fa69dfdd682f82e8639bc7.zip
Clarify that the other option for name_or_adapter is to be a class (the Adapter class)
Diffstat (limited to 'lib')
-rw-r--r--lib/active_job/queue_adapter.rb2
1 files changed, 1 insertions, 1 deletions
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