lib/fozzie.rb in fozzie-0.0.20 vs lib/fozzie.rb in fozzie-0.0.21
- old
+ new
@@ -7,17 +7,21 @@
#
# Rack and Rails middleware is avaliable to gather statistics on the processing time of Controller actions.
#
module Fozzie
+ require 'core_ext/module/monitor'
+
require 'fozzie/configuration'
require "fozzie/interface"
require "fozzie/version"
require "fozzie/rack/middleware"
require "fozzie/rails/middleware"
+ require 'fozzie/railtie' if defined?(::Rails)
+
class << self
# Shortcut for `Fozzie.config`
def c
config
@@ -55,6 +59,6 @@
# Loads each namespace for registering statistics
self.c.namespaces.each do |klas|
Kernel.const_set(klas, Interface.instance) unless const_defined?(klas)
end
-end
\ No newline at end of file
+end