Skip to content

Commit

Permalink
autoload HighVoltage::PageFinder to avoid uninitialized constant error
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenmouse committed Oct 8, 2012
1 parent 6cac4ee commit 99b9ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/high_voltage/pages_controller.rb
@@ -1,5 +1,3 @@
require 'high_voltage/page_finder'

class HighVoltage::PagesController < ApplicationController
unloadable
layout Proc.new { |_| HighVoltage.layout }
Expand Down
2 changes: 2 additions & 0 deletions lib/high_voltage.rb
Expand Up @@ -15,4 +15,6 @@ def self.setup
end

require 'high_voltage/engine' if defined?(Rails)

autoload :PageFinder, 'high_voltage/page_finder'
end

0 comments on commit 99b9ab3

Please sign in to comment.