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 +4 -4
- data/lib/simple_form_ransack.rb +5 -1
- data/lib/simple_form_ransack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84e977d954eff64d5968fde789c5aeaf99c3c491
|
4
|
+
data.tar.gz: a82c5e23c5ed58578a0a4231c366e71cfc883e2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c308138d2697da03e70207e75ba7b18569c4d18c2ea9ef820878ab39fc227b8e7118829b35780b73322e4287865ea3b951e0642dc0f2a27ae849b84d9c24e711
|
7
|
+
data.tar.gz: 36155936bd1e554956eb13981295e8b8427a6e06871742be80aee45feea1ea3b92cde1f4969f5645b72c754e174a45f4f5cb4825106d55ab2a8984763d40f452
|
data/lib/simple_form_ransack.rb
CHANGED
@@ -5,7 +5,11 @@ module SimpleFormRansack
|
|
5
5
|
|
6
6
|
def self.locale_files
|
7
7
|
files = []
|
8
|
-
|
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"
|
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.
|
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-
|
11
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|