has_localization_table 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTA5ZTdjNjE1NTBjNzg5MjBmZTRlODhhNmVmOTIyZDQwYmNiNmE1Mw==
4
+ Zjk0OGNmNzA2ZWY4MjdiM2VhZGM3YTNhYjczOGEzMDljOTJlYzUzOA==
5
5
  data.tar.gz: !binary |-
6
- NjhhZWRjZGRkNmI5NzQxMDRkYjUwN2RhNWQxNDBmMmY3OWY5ZmNlOQ==
6
+ NzBhM2JmZjQ3MDNhNDMyYjhiMjNkOWU0Yjc1YTljNTI1NzA3N2Q1Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTJiYTAwODJlNmU0ZjZjNjJkZmYwNmQxOWYxZTI5ZTQ0OTM0YjU0YmU1OTcz
10
- NTI2MThjZTdiNmY3YzU5MjExYjYzNjk1NjYxOTdkYjg1YWQwMzFjNTRiMDFh
11
- MWQ1N2EwYTBkNzg5YjgwZTA5MTljMTU3YWIxNDJiZmJkMWQyOTg=
9
+ YzcwZDRhMmZhZWUxYmZjMjg5ZjAzZTQ0NzdlMmJlOTFlODNmYTZlYjI2NTkw
10
+ NjU4ZmVmMjE4YjEwNjViN2UyNDk1NDkyM2M0YWJlZDJjYTM2MWQxMDBhOTE0
11
+ OTY3MDUwZjE1ZGVhYmMwMzllYjk0MjVmNTIzNDljZTZiM2Y5NjE=
12
12
  data.tar.gz: !binary |-
13
- ZWJjYmI0OWZjNDQ5MzcxNDU2MmI3NjI0OTRjMTZkYTEzMWM5YWE0Y2RhNDgx
14
- NWRlYWZlY2NmMjJiNzE5ZDg4ZGEwNGM2YjZmNmQ4ZDg3Nzg5MThmMzdkMTc5
15
- N2RiNTg0NjE1ZTIxZjdkYTNhMzQwYTJhZmVkYWY4YTg3ODdiMzY=
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 }
@@ -1,3 +1,3 @@
1
1
  module HasLocalizationTable
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
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.10
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-14 00:00:00.000000000 Z
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  type: :runtime