tr8n_core 4.3 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tr8n/application.rb +0 -1
- data/lib/tr8n/session.rb +6 -0
- data/lib/tr8n_core/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: 978e678ec0dcfdacbdbe1c350df5206c6c3c8a00
|
4
|
+
data.tar.gz: 0cd5da1f871e2e0773a3651cf358992fb69f8e2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6c6e0186d6f6839c9f3439c3a587ddcf2f7bf5c6fdd01903508c1290dcba3a98c41e2c5f86d748f11b88822ecfb5565094c32546639bbfbfd1683afe7d2beae
|
7
|
+
data.tar.gz: 8fb4dd8f913f69d238ebaa6b8096a064a9880c490dfdf7386e464dc260b15ac701d1ba456c8833ffdb888fd9251cc3e2240e753d73ef2d374f01cca2e38fedb0
|
data/lib/tr8n/application.rb
CHANGED
@@ -47,7 +47,6 @@ class Tr8n::Application < Tr8n::Base
|
|
47
47
|
def fetch
|
48
48
|
update_attributes(api_client.get('applications/current', {:definition => true}, {:cache_key => self.class.cache_key}))
|
49
49
|
rescue Tr8n::Exception => ex
|
50
|
-
pp ex, ex.backtrace
|
51
50
|
Tr8n.logger.error("Failed to load application: #{ex}")
|
52
51
|
self
|
53
52
|
end
|
data/lib/tr8n/session.rb
CHANGED
@@ -97,6 +97,12 @@ module Tr8n
|
|
97
97
|
self.current_translator = Tr8n::Translator.new(self.cookie_params['translator'])
|
98
98
|
end
|
99
99
|
|
100
|
+
# if inline mode don't use any app cache
|
101
|
+
if inline_mode?
|
102
|
+
self.application = self.application.dup
|
103
|
+
self.application.reset_translation_cache
|
104
|
+
end
|
105
|
+
|
100
106
|
if self.current_translator
|
101
107
|
self.current_translator.application = self.application
|
102
108
|
end
|
data/lib/tr8n_core/version.rb
CHANGED