aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-10-10 15:00:28 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-10-10 15:00:28 -0300
commitd1fc0a5eb286600abf8505516897b96c2f1ef3f6 (patch)
tree6270d56290b072834beb9f3d502b32cc369ea6fd /activejob/lib
parentd861a1fcf8401a173876489d8cee1ede1cecde3b (diff)
downloadrails-d1fc0a5eb286600abf8505516897b96c2f1ef3f6.tar.gz
rails-d1fc0a5eb286600abf8505516897b96c2f1ef3f6.tar.bz2
rails-d1fc0a5eb286600abf8505516897b96c2f1ef3f6.zip
Removed deprecated support to passing the adapter class to .queue_adapter
Diffstat (limited to 'activejob/lib')
-rw-r--r--activejob/lib/active_job/queue_adapter.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activejob/lib/active_job/queue_adapter.rb b/activejob/lib/active_job/queue_adapter.rb
index 7f9a2da4b0..2e9f1e61be 100644
--- a/activejob/lib/active_job/queue_adapter.rb
+++ b/activejob/lib/active_job/queue_adapter.rb
@@ -37,12 +37,6 @@ module ActiveJob
else
if queue_adapter?(name_or_adapter_or_class)
name_or_adapter_or_class
- elsif queue_adapter_class?(name_or_adapter_or_class)
- ActiveSupport::Deprecation.warn "Passing an adapter class is deprecated " \
- "and will be removed in Rails 5.1. Please pass an adapter name " \
- "(.queue_adapter = :#{name_or_adapter_or_class.name.demodulize.remove('Adapter').underscore}) " \
- "or an instance (.queue_adapter = #{name_or_adapter_or_class.name}.new) instead."
- name_or_adapter_or_class.new
else
raise ArgumentError
end
@@ -54,10 +48,6 @@ module ActiveJob
def queue_adapter?(object)
QUEUE_ADAPTER_METHODS.all? { |meth| object.respond_to?(meth) }
end
-
- def queue_adapter_class?(object)
- object.is_a?(Class) && QUEUE_ADAPTER_METHODS.all? { |meth| object.public_method_defined?(meth) }
- end
end
end
end