has_localization_table 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
Zjk0OGNmNzA2ZWY4MjdiM2VhZGM3YTNhYjczOGEzMDljOTJlYzUzOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzBhM2JmZjQ3MDNhNDMyYjhiMjNkOWU0Yjc1YTljNTI1NzA3N2Q1Zg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YzcwZDRhMmZhZWUxYmZjMjg5ZjAzZTQ0NzdlMmJlOTFlODNmYTZlYjI2NTkw
|
|
10
|
+
NjU4ZmVmMjE4YjEwNjViN2UyNDk1NDkyM2M0YWJlZDJjYTM2MWQxMDBhOTE0
|
|
11
|
+
OTY3MDUwZjE1ZGVhYmMwMzllYjk0MjVmNTIzNDljZTZiM2Y5NjE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MDJhYzI2ZjYwMzRhZjU1NTA1N2RjODg4OTA2NDJjNzFmOTc4NDg0N2NlMjZj
|
|
14
|
+
ZjA4OTliZTFiMmQzMTIxMzE5MjE5ZmFjYzQ5Nzc3MmMyMGI5NGZiY2I5MWNm
|
|
15
|
+
YjYwZWRkOTczYzUxMTI1NmZlNTRjZDY4OTNhMWU3YWNjMjcyYTU=
|
|
@@ -59,6 +59,8 @@ module HasLocalizationTable
|
|
|
59
59
|
module InstanceMethods
|
|
60
60
|
# Add localization objects for any available locale that doesn't have one
|
|
61
61
|
def build_missing_localizations!
|
|
62
|
+
return unless HasLocalizationTable.all_locales.any?
|
|
63
|
+
|
|
62
64
|
locale_ids = HasLocalizationTable.all_locales.map(&:id)
|
|
63
65
|
HasLocalizationTable.all_locales.each do |locale|
|
|
64
66
|
unless localization_association.detect{ |str| str.send(HasLocalizationTable.locale_foreign_key) == locale.id }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: has_localization_table
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Vandersluis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-10-
|
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
type: :runtime
|