lib/jets/core.rb in jets-0.6.8 vs lib/jets/core.rb in jets-0.6.9
- old
+ new
@@ -133,10 +133,10 @@
class_name = path
.sub(/\.rb$/,'') # remove .rb
.sub(/^\.\//,'') # remove ./
.sub(/app\/\w+\//,'') # remove app/controllers or app/jobs etc
.classify
- puts "eager_load! loading path: #{path} class_name: #{class_name}" if ENV['DEBUG']
+ puts "eager_load! loading path: #{path} class_name: #{class_name}" if ENV['JETS_DEBUG']
class_name.constantize # use constantize instead of require so dont have to worry about order.
end
end
# NOTE: In development this will always be 1 because the app gets reloaded.