aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2015-03-12 12:00:42 -0400
committerArthur Nogueira Neves <github@arthurnn.com>2015-03-12 12:00:42 -0400
commitbe496706ca0af72df34e1fbb3e0abb6c0cfe9ca7 (patch)
tree1a98138f1839f0c2d8bb80626b2dbe442374273e
parentba7e5530d808e14f0cd135480bb7673bca78d3fe (diff)
parent7e36841981d4f8dac1f24642a7bdffdf952cf027 (diff)
downloadrails-be496706ca0af72df34e1fbb3e0abb6c0cfe9ca7.tar.gz
rails-be496706ca0af72df34e1fbb3e0abb6c0cfe9ca7.tar.bz2
rails-be496706ca0af72df34e1fbb3e0abb6c0cfe9ca7.zip
Merge pull request #19310 from square/aj-const-get
Use a more conservative `const_get` over `constantize`
-rw-r--r--activejob/lib/active_job/queue_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/active_job/queue_adapter.rb b/activejob/lib/active_job/queue_adapter.rb
index f3a3d27193..e1f104dc60 100644
--- a/activejob/lib/active_job/queue_adapter.rb
+++ b/activejob/lib/active_job/queue_adapter.rb
@@ -58,7 +58,7 @@ module ActiveJob
end
def load_adapter(name)
- "ActiveJob::QueueAdapters::#{name.to_s.camelize}Adapter".constantize.new
+ ActiveJob::QueueAdapters.const_get(name.to_s.camelize + 'Adapter').new
end
end
end