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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1c24962e7af4aae8d474872c00149aac873f23dbbfad3ddf4c8de53cc4c1f75
4
- data.tar.gz: e356866b46a51297a576a79d77cdc45f29c3482409390a95257a36797f4e759d
3
+ metadata.gz: 8a1acf9b886649566b0afd4a09ae4b49300ab87badef72c92ac0aab51d61475a
4
+ data.tar.gz: 4163f128c82b6d0ab8596b38a285c8f20ade796deaa63fcd48e0f3c6d61c140e
5
5
  SHA512:
6
- metadata.gz: 5b946132563c3180eefa6eee7417fadb6d85658ffef574560c748ca75da3353c277b978884de218701fedf1e2db732fe129418ae26effad8e4d272223b5aeb25
7
- data.tar.gz: 25e18c2e1de5509adfe6a051e64195d5522bfdccceecf9208458d0c0603f3452f818759056c2f24fdaedaa89788bcf00a7e17574bde09265b1c2773fece5e152
6
+ metadata.gz: 7bc2696c9876c39a6de56ba4c4f9aa5c6851d9a14402727b68bed54de2ac3a9791e480b8256934556774c5084471559a511547a54ce5bd7941694105d22f9ccd
7
+ data.tar.gz: 318680d2a3580eda289b4f436228a3d10ed6dbafd527ffcd0f89ce84dd9e8c96864d1c459593db1b951327687d5f41f02da235b67b53d9a73ded856c56f07628
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.5.0)
4
+ avo (2.5.1)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
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('lib', 'generators', 'avo', 'templates', 'locales', '*.{rb,yml}')]
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, default: I18n.t("avo.no_options_available")
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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.5.0" unless const_defined?(:VERSION)
2
+ VERSION = "2.5.1" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin