instance method
interpret_adapter
Ruby on Rails 5.1.7
Since v5.0.7.2 Last seen in v5.1.7 Private — implementation detail, not part of the public APIAvailable in: v5.0.7.2 v5.1.7
Signature
interpret_adapter(name_or_adapter_or_class)
No documentation comment.
Parameters
-
name_or_adapter_or_classreq
Source
# File activejob/lib/active_job/queue_adapter.rb, line 31
def interpret_adapter(name_or_adapter_or_class)
case name_or_adapter_or_class
when Symbol, String
ActiveJob::QueueAdapters.lookup(name_or_adapter_or_class).new
else
if queue_adapter?(name_or_adapter_or_class)
name_or_adapter_or_class
else
raise ArgumentError
end
end
end
Defined in activejob/lib/active_job/queue_adapter.rb line 31
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::QueueAdapter::ClassMethods