translations_ennder 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/translations_ennder/rails.rb +10 -6
- data/version.txt +1 -1
- metadata +3 -3
data/History.txt
CHANGED
@@ -17,21 +17,25 @@ end
|
|
17
17
|
if Rails::VERSION::MAJOR < 3 then
|
18
18
|
Rails.configuration.after_initialize do
|
19
19
|
_info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V2.x.y, init_translations_ennder() dans after_initialize"
|
20
|
-
|
21
|
-
|
20
|
+
|
21
|
+
if RAILS_DEFAULT_LOGGER.nil?
|
22
|
+
_logger = Logger.new( File.join(RAILS_ROOT, "log", "#{RAILS_ENV}.log") )
|
22
23
|
else
|
23
|
-
|
24
|
+
_logger = RAILS_DEFAULT_LOGGER
|
24
25
|
end
|
26
|
+
_logger.info _info
|
25
27
|
|
26
28
|
init_translations_ennder
|
27
29
|
end
|
28
30
|
else
|
29
31
|
_info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V3.x.y, init_translations_ennder()"
|
30
|
-
|
31
|
-
|
32
|
+
|
33
|
+
if Rails.logger.nil?
|
34
|
+
_logger = Logger.new(Rails.root + "log/#{Rails.env}.log")
|
32
35
|
else
|
33
|
-
|
36
|
+
_logger = Rails.logger
|
34
37
|
end
|
38
|
+
_logger.info _info
|
35
39
|
|
36
40
|
init_translations_ennder
|
37
41
|
end
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.9
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translations_ennder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 9
|
10
|
+
version: 1.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ennder
|