diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2015-03-12 12:00:42 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2015-03-12 12:00:42 -0400 |
commit | be496706ca0af72df34e1fbb3e0abb6c0cfe9ca7 (patch) | |
tree | 1a98138f1839f0c2d8bb80626b2dbe442374273e | |
parent | ba7e5530d808e14f0cd135480bb7673bca78d3fe (diff) | |
parent | 7e36841981d4f8dac1f24642a7bdffdf952cf027 (diff) | |
download | rails-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.rb | 2 |
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 |