Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove hack and use unloadable to behave correctly in dev

  • Loading branch information...
commit 6fe3de45e4879eadb982f63bf2136bc5fa456ff1 1 parent b24f1b7
Adam McCrea authored
Showing with 2 additions and 5 deletions.
  1. +0 −5 init.rb
  2. +2 −0  lib/app/controllers/mockups_controller.rb
View
5 init.rb
@@ -1,5 +0,0 @@
-
-# Since MockupsController subclasses (and thus loads) ApplicationController, we need to make sure that
-# it gets reloaded in development. Without this, things will break after the first reload.
-ActiveSupport::Dependencies.autoload_once_paths.delete(File.expand_path(File.dirname(__FILE__))+'/app/controllers')
-
View
2  lib/app/controllers/mockups_controller.rb
@@ -1,4 +1,6 @@
class MockupsController < ApplicationController
+ unloadable
+
LAYOUTS = Dir.glob(File.join(Rails.root, 'app', 'views', 'layouts', '*.html.*')).map do |file|
File.basename(file).split('.').first
end
Please sign in to comment.
Something went wrong with that request. Please try again.