lib/lookbook/runtime_context.rb in lookbook-2.0.0.rc.2 vs lib/lookbook/runtime_context.rb in lookbook-2.0.0.rc.3
- old
+ new
@@ -33,10 +33,10 @@
def gem_installed?(name)
Gem.loaded_specs.has_key?(name)
end
def web?
- !rake_task? && !Rails.const_defined?(:Console)
+ !rake_task? && !Rails.const_defined?(:Console, false)
end
def rake_task?
if defined?(Rake) && Rake.respond_to?(:application)
File.basename($0) == "rake" || Rake.application.top_level_tasks.any?