trackman 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/trackman.rb +3 -1
- data/lib/trackman/version.rb +1 -1
- metadata +1 -1
data/lib/trackman.rb
CHANGED
@@ -11,7 +11,9 @@ autoload :Debugger, 'trackman/debugger'
|
|
11
11
|
|
12
12
|
if defined?(Rails)
|
13
13
|
if ::Rails::VERSION::STRING =~ /^2\.[1-9]/
|
14
|
-
Rails.configuration.
|
14
|
+
unless Rails.class_variable_get(:@@configuration).nil?
|
15
|
+
Rails.configuration.middleware.use Trackman::RackMiddleware
|
16
|
+
end
|
15
17
|
elsif ::Rails::VERSION::STRING =~ /^[3-9]\.[1-9]/
|
16
18
|
require "trackman/railtie"
|
17
19
|
end
|
data/lib/trackman/version.rb
CHANGED