Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

autoload HighVoltage::PageFinder to avoid uninitialized constant error #45

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
@@ -1,5 +1,3 @@
-require 'high_voltage/page_finder'
-
class HighVoltage::PagesController < ApplicationController
unloadable
layout Proc.new { |_| HighVoltage.layout }
View
@@ -15,4 +15,6 @@ def self.setup
end
require 'high_voltage/engine' if defined?(Rails)
+
+ autoload :PageFinder, 'high_voltage/page_finder'
end