acts_as_translatable 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -64,14 +64,16 @@ class ActiveRecord::Base
|
|
64
64
|
fields.each do |field|
|
65
65
|
eval "class ::#{name}
|
66
66
|
def self.enable_locale_fallbacks
|
67
|
-
if
|
67
|
+
if !@enable_locale_fallbacks_set
|
68
68
|
@enable_locale_fallbacks = true
|
69
|
+
@enable_locale_fallbacks_set = true
|
69
70
|
end
|
70
71
|
@enable_locale_fallbacks
|
71
72
|
end
|
72
73
|
|
73
74
|
def self.enable_locale_fallbacks=(value)
|
74
75
|
@enable_locale_fallbacks = value
|
76
|
+
@enable_locale_fallbacks_set = true
|
75
77
|
end
|
76
78
|
|
77
79
|
def #{field}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_translatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lasse Bunk
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-05-
|
18
|
+
date: 2012-05-19 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Ruby on Rails plugin for easy translation of database fields.
|