simple_form_ransack 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aaf4e35c9ce8bb0bc878d9bd73aeba5da18042b
4
- data.tar.gz: a566340fd4da98f5708d09250f1afbe669a9b4a1
3
+ metadata.gz: 84e977d954eff64d5968fde789c5aeaf99c3c491
4
+ data.tar.gz: a82c5e23c5ed58578a0a4231c366e71cfc883e2b
5
5
  SHA512:
6
- metadata.gz: 7483ee3d9547a2500df735a6102c5168a1147b6bf5d7163f59adc2f32cdf148cd6dcb583cc20319976849ca7bc2bfbb6b5530a9bd09e6122d2270db4a3a4df0f
7
- data.tar.gz: d2381a05775fff59855115a0e2916d7ff59447df685abd91b56e7e880b8bf214f4fff77c4e1f51c36155890a06a62d5c4dd9681f7bd0f71cd03c8adbf74bde3f
6
+ metadata.gz: c308138d2697da03e70207e75ba7b18569c4d18c2ea9ef820878ab39fc227b8e7118829b35780b73322e4287865ea3b951e0642dc0f2a27ae849b84d9c24e711
7
+ data.tar.gz: 36155936bd1e554956eb13981295e8b8427a6e06871742be80aee45feea1ea3b92cde1f4969f5645b72c754e174a45f4f5cb4825106d55ab2a8984763d40f452
@@ -5,7 +5,11 @@ module SimpleFormRansack
5
5
 
6
6
  def self.locale_files
7
7
  files = []
8
- available_locales = (I18n.available_locales + Rails.application.config.i18n.available_locales).uniq
8
+
9
+ available_locales = []
10
+ available_locales += I18n.available_locales if I18n.available_locales
11
+ available_locales += Rails.application.config.i18n.available_locales if Rails.application.config.i18n.available_locales
12
+ available_locales.uniq!
9
13
 
10
14
  available_locales.each do |locale|
11
15
  path = "#{File.realpath("#{File.dirname(__FILE__)}/../config/locales")}/#{locale}.yml"
@@ -1,3 +1,3 @@
1
1
  module SimpleFormRansack
2
- VERSION = "0.0.17".freeze
2
+ VERSION = "0.0.18".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_ransack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails