lib/jets/preheat.rb in jets-1.9.4 vs lib/jets/preheat.rb in jets-1.9.5

- old
+ new

@@ -106,10 +106,10 @@ Jets::Commands::Build.app_files.map do |path| next if path.include?("preheat_job.rb") # dont want to cause an infinite loop, just in case next unless path =~ %r{app/controllers} # only prewarm controllers class_path = path.sub(%r{.*app/\w+/},'').sub(/\.rb$/,'') - class_name = class_path.classify + class_name = class_path.camelize # IE: PostsController class_name.constantize # load app/**/* class definition end.compact end end \ No newline at end of file