lib/wiselinks.rb in wiselinks-0.1.2 vs lib/wiselinks.rb in wiselinks-0.2.0
- old
+ new
@@ -1,11 +1,16 @@
-require 'headers'
+require 'wiselinks/headers'
+require 'wiselinks/request'
+require 'wiselinks/logger'
module Wiselinks
class Engine < ::Rails::Engine
+ initializer 'wiselinks.setup_logger' do
+ Wiselinks::Logger.logger = Rails.logger
+ end
initializer "wiselinks.register" do
ActionController::Base.send :include, Headers
- end
-
+ ActionDispatch::Request.send :include, Request
+ end
end
end