Skip to content
Browse files

Rails 3 doesn't like our load-order work-around, so let's just have t…

…he generator do it.
  • Loading branch information...
1 parent 563b788 commit 2a5e8844d1623972f78ea12522c67a95e6df5c24 @wfarr wfarr committed
Showing with 1 addition and 4 deletions.
  1. +0 −4 init.rb
  2. +1 −0 lib/generators/moonshine/moonshine_generator.rb
View
4 init.rb
@@ -1,4 +0,0 @@
-if Rails::VERSION::MAJOR > 2
- # Make app/manifests NOT be eagerly loaded
- Rails.configuration.paths.app.manifests('app/manifests').skip_eager_load!
-end
View
1 lib/generators/moonshine/moonshine_generator.rb
@@ -19,6 +19,7 @@ def manifest
template "moonshine.rb", "app/manifests/#{file_name}.rb"
template "moonshine.yml", "config/moonshine.yml"
template "deploy.rb", "config/deploy.rb"
+ environment "config.paths.app.manifests 'app/manifests', :eager_load => false", :verbose => true
if options[:multistage]
template 'staging-deploy.rb', 'config/deploy/staging.rb'

0 comments on commit 2a5e884

Please sign in to comment.
Something went wrong with that request. Please try again.