Permalink
Browse files

tweaking

  • Loading branch information...
1 parent f165f96 commit 84910ceb4ca2851d650e66d3b22f5008acf253f8 @wuputah wuputah committed Mar 15, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 init.rb
  2. +1 −1 lib/rails3_serve_static_assets/railtie.rb
View
@@ -1,2 +1,2 @@
# only run when used as a plugin
-Rails.application.class.config.serve_static_assets = true
+Rails.configuration.serve_static_assets = true
@@ -1,6 +1,6 @@
module Rails3ServeStaticAssets
class Railtie < Rails::Railtie
- config.after_initialize do
+ config.before_initialize do
::Rails.configuration.serve_static_assets = true
end
end

0 comments on commit 84910ce

Please sign in to comment.