lib/inverter/engine.rb in inverter-0.2.7 vs lib/inverter/engine.rb in inverter-0.3.2
- old
+ new
@@ -1,5 +1,17 @@
module Inverter
class Engine < Rails::Engine
# auto wire
end
-end
\ No newline at end of file
+
+ class Railtie < Rails::Railtie
+ if Rails.env.development?
+ initializer "inverter.configure_rails_initialization" do
+ Rails.application.middleware.use Inverter::Middleware
+ end
+ end
+ end
+end
+
+
+
+