wildsight 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wildsight/rails/railtie.rb +3 -3
- data/lib/wildsight/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c181e60e9f02b54dd241c870cf64e9090dd903f
|
4
|
+
data.tar.gz: a78a78887d80adf11a6cc0be5c502b98924a5984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a1f20118f985b6ca6300766a63743ac1d169427e01d7f81e7c83c584abe5e0792a139c6b74ef457b4fb335a172d8727e68d02f4bd6cc506dfcc111c960f1b2
|
7
|
+
data.tar.gz: 39beb19dc059b8d2a6b08b911aee070f50229c5d386bca3701a1891adbaee9b6464e40f44f9e222e9afd0d77bd032db549063cdd8a0bef9c2512b6b3a0918332
|
@@ -55,11 +55,11 @@ module Wildsight
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def wildsight_context
|
58
|
-
@_wildsight_context ||= Wildsight::Context::Rack.detect_context(request.env)
|
58
|
+
@_wildsight_context ||= Wildsight::Context::Rack.detect_context(self.respond_to?(:request) ? request.env : {})
|
59
59
|
end
|
60
60
|
|
61
61
|
def process_action(*args)
|
62
|
-
context = Wildsight::Context::Rack.detect_context(request.env)
|
62
|
+
context = Wildsight::Context::Rack.detect_context(self.respond_to?(:request) ? request.env : {})
|
63
63
|
context.rails_extract(self)
|
64
64
|
result = context.profiler.duration(:action) { process_action_without_ws(*args) }
|
65
65
|
return result
|
@@ -75,7 +75,7 @@ module Wildsight
|
|
75
75
|
alias_method :render_without_ws, :render
|
76
76
|
|
77
77
|
def render(*args, &block)
|
78
|
-
context = Wildsight::Context::Rack.detect_context(request.env)
|
78
|
+
context = Wildsight::Context::Rack.detect_context(self.respond_to?(:request) ? request.env : {})
|
79
79
|
result = context.profiler.duration(:render) { render_without_ws(*args, &block) }
|
80
80
|
return result
|
81
81
|
end
|
data/lib/wildsight/version.rb
CHANGED