Permalink
Browse files

fixing the Railtie, nice try, but the docs are your friend

  • Loading branch information...
1 parent 944c659 commit 39f68725d050d7a0d3782f772b8294c97985e244 @justinfrench committed Jul 22, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/publicious/railtie.rb
@@ -1,3 +1,5 @@
-class PubliciousRailtie < Rails::Railtie
- config.app.middelware.insert_before(Rack::Lock, Publicious) if config.respond_to?(:app)
+class MyRailtie < Rails::Railtie
+ initializer "publicious.configure_middleware" do |app|
+ app.middleware.insert_before(Rack::Lock, Publicious)
+ end
end

0 comments on commit 39f6872

Please sign in to comment.