avo 2.5.0 → 2.5.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/avo/engine.rb +1 -1
- data/lib/avo/filters/base_filter.rb +5 -1
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a1acf9b886649566b0afd4a09ae4b49300ab87badef72c92ac0aab51d61475a
|
4
|
+
data.tar.gz: 4163f128c82b6d0ab8596b38a285c8f20ade796deaa63fcd48e0f3c6d61c140e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bc2696c9876c39a6de56ba4c4f9aa5c6851d9a14402727b68bed54de2ac3a9791e480b8256934556774c5084471559a511547a54ce5bd7941694105d22f9ccd
|
7
|
+
data.tar.gz: 318680d2a3580eda289b4f436228a3d10ed6dbafd527ffcd0f89ce84dd9e8c96864d1c459593db1b951327687d5f41f02da235b67b53d9a73ded856c56f07628
|
data/Gemfile.lock
CHANGED
data/lib/avo/engine.rb
CHANGED
@@ -17,7 +17,7 @@ module Avo
|
|
17
17
|
::Avo::App.boot
|
18
18
|
end
|
19
19
|
|
20
|
-
config.i18n.load_path += Dir[Avo::Engine.root.join(
|
20
|
+
config.i18n.load_path += Dir[Avo::Engine.root.join("lib", "generators", "avo", "templates", "locales", "*.{rb,yml}")]
|
21
21
|
|
22
22
|
initializer "avo.autoload" do |app|
|
23
23
|
[
|
@@ -7,7 +7,7 @@ module Avo
|
|
7
7
|
class_attribute :component, default: "boolean-filter"
|
8
8
|
class_attribute :default, default: nil
|
9
9
|
class_attribute :template, default: "avo/base/select_filter"
|
10
|
-
class_attribute :empty_message
|
10
|
+
class_attribute :empty_message
|
11
11
|
|
12
12
|
delegate :params, to: Avo::App
|
13
13
|
|
@@ -17,6 +17,10 @@ module Avo
|
|
17
17
|
rescue
|
18
18
|
{}
|
19
19
|
end
|
20
|
+
|
21
|
+
def get_empty_message
|
22
|
+
empty_message || I18n.t("avo.no_options_available")
|
23
|
+
end
|
20
24
|
end
|
21
25
|
|
22
26
|
def apply_query(request, query, value)
|
data/lib/avo/version.rb
CHANGED