lib/legion/extensions/helpers/lex.rb in legionio-0.3.0 vs lib/legion/extensions/helpers/lex.rb in legionio-0.3.1
- old
+ new
@@ -4,16 +4,16 @@
module Lex
include Legion::Extensions::Helpers::Core
include Legion::Extensions::Helpers::Logger
def self.included(base)
- base.send :extend, Legion::Extensions::Helpers::Core if base.class == Class
- base.send :extend, Legion::Extensions::Helpers::Logger if base.class == Class
- base.extend base if base.class == Module
+ base.send :extend, Legion::Extensions::Helpers::Core if base.instance_of?(Class)
+ base.send :extend, Legion::Extensions::Helpers::Logger if base.instance_of?(Class)
+ base.extend base if base.instance_of?(Module)
end
def default_settings
- { logger: { level: 'info' } }
+ { logger: { level: 'info' }, workers: 1 }
end
end
end
end
end