lib/mitamirri.rb in mitamirri-0.13.8 vs lib/mitamirri.rb in mitamirri-2.0.8
- old
+ new
@@ -1,15 +1,12 @@
module Mitamirri
- require 'mitamirri'
- require 'mitamirri/session_report'
+
+ require 'mongoid'
+ require 'mitamirri/engine' if defined?(Rails)
+ require 'mitamirri/railtie' if defined?(Rails)
+ require 'mitamirri/helper'
- # Detects the ability of the host application to output reports to PDF format.
- def self.pdf_output_enabled?
- @pdf_output_enabled ||= false
- begin
- @pdf_output_enabled = Rails.configuration.middleware.include?('PDFKit::Middleware')
- rescue
- end
- @pdf_output_enabled
+ def self.setup
+ yield self
end
-
-end
\ No newline at end of file
+
+end