lib/raisin/railtie.rb in raisin-0.1.2 vs lib/raisin/railtie.rb in raisin-0.2.0
- old
+ new
@@ -1,7 +1,12 @@
-require 'raisin/rails/routes'
-require 'raisin/rails/request'
-
module Raisin
class Railtie < Rails::Railtie
+
+ initializer 'raisin.middleware' do |app|
+ app.middleware.use Raisin::Middleware
+ end
+
+ initializer 'raisin.patch_rails' do
+ ActionDispatch::Routing::Mapper.include(Raisin::Mapper)
+ end
end
-end
\ No newline at end of file
+end