diff options
author | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-11-03 17:55:55 +0000 |
---|---|---|
committer | Nat Lasseter <nat.lasseter@york.ac.uk> | 2020-11-03 17:55:55 +0000 |
commit | 5af5a46bc6a96520ad18da0c6b42c6a0f523fcbb (patch) | |
tree | 7bad040305ea5446227e6c19386e2e67006ec789 /lib | |
parent | b859d0d0b638e03498d620dcfa09a6aacfe44f0e (diff) |
Just chuck it in initialize
Diffstat (limited to 'lib')
-rw-r--r-- | lib/longboat/raiders.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb index f907f01..cd93858 100644 --- a/lib/longboat/raiders.rb +++ b/lib/longboat/raiders.rb @@ -15,9 +15,7 @@ module Longboat cname = reqname.split('_').map(&:capitalize).join require "#{dir}/#{reqname}" - raider = Kernel.const_get(cname).new(@collector, raider_config) - raider.configure! if raider.respond_to?(:configure!) - @raiders[reqname] = raider + @raiders[reqname] = Kernel.const_get(cname).new(@collector, raider_config) end end end |