lib/foreman_tasks/dynflow.rb in foreman-tasks-0.2.2 vs lib/foreman_tasks/dynflow.rb in foreman-tasks-0.3.0
- old
+ new
@@ -30,10 +30,10 @@
def initialize!
return unless @required
return @world if @world
- if config.lazy_initialization && defined? PhusionPassenger
+ if config.lazy_initialization && defined?(PhusionPassenger)
config.dynflow_logger.warn("ForemanTasks: lazy loading with PhusionPassenger might lead to unexpected results")
end
config.initialize_world.tap do |world|
@world = world