diff options
| author | Tamir Duberstein <tamird@squareup.com> | 2014-09-23 20:43:12 -0700 | 
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2015-03-12 08:40:41 -0700 | 
| commit | 7e36841981d4f8dac1f24642a7bdffdf952cf027 (patch) | |
| tree | 39aaaa76c3f3770816b5fc8794a5edd96cad77d9 | |
| parent | 2ad6502787b8d2acf2f5971068f0623cf36ed25f (diff) | |
| download | rails-7e36841981d4f8dac1f24642a7bdffdf952cf027.tar.gz rails-7e36841981d4f8dac1f24642a7bdffdf952cf027.tar.bz2 rails-7e36841981d4f8dac1f24642a7bdffdf952cf027.zip | |
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 | 
