ez-resources 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 4e1bb8408ecf50c3f37c711f2dc794539db2100668807bee71a14497599fbdf8
4
- data.tar.gz: c0b7daf6075b77cc36bdfad87a2ead85ea077117c7729e9a1bbb905fab206f12
3
+ metadata.gz: 47d29f29e01ad1b5f219ff7ab58bb7f6394179367b106726d7add1615fb7d25d
4
+ data.tar.gz: 766c145a98f669b4b4210be7a4e054137d5056de10da89dc2d87328020b46e4c
5
5
  SHA512:
6
- metadata.gz: fe4c148385baceb68d60985b1a3ed3097a051e57baaf4c7ffc7de1c33e4e0e9d505b612660c008d75d47c8b9faa2bcd39983a73489aa135b50b62038891206e4
7
- data.tar.gz: a79bd3413544b51fe22762faaccc36c5caae456d7584577743d13e4081f0130737acc44c86d6d2286555d679e73ea0f92addfd052256e090d6267762a9e00250
6
+ metadata.gz: 8ecfcbf112bc353e6b20ff08e6b5041db933b007f3c97d04c7ce8730698d35ca980cb631a5c9ba62d3ecac10c2f18ae7c42a511b3a9014ca7e6e49e26d21f99e
7
+ data.tar.gz: 322224c6d06813aa0b16207ced31fdb81b885d5c1ecc1a16cc9a9c25bff4e7d3c918dcdc04ee479cae97656183624032075d9a0803cd324acdb4835d1a10290d
@@ -26,7 +26,7 @@ module Ez
26
26
  end
27
27
 
28
28
  def field_label(field)
29
- "#{field.title} (#{t "search.suffix.#{field.search_suffix}"})"
29
+ field.search_label || "#{field.title} (#{t "search.suffix.#{field.search_suffix}"})"
30
30
  end
31
31
 
32
32
  private
@@ -20,6 +20,7 @@ module Ez
20
20
  :searchable,
21
21
  :sortable,
22
22
  :search_suffix,
23
+ :search_label,
23
24
  :options
24
25
 
25
26
  def initialize(options = {})
@@ -38,6 +39,7 @@ module Ez
38
39
  @searchable = options.delete(:searchable) != false
39
40
  @sortable = options.delete(:sortable) || false
40
41
  @search_suffix = options.delete(:search_suffix) || :cont
42
+ @search_label = options.delete(:search_label)
41
43
  @options = options # use for all other custom options
42
44
  end
43
45
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ez
4
4
  module Resources
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodya Sveredyuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-30 00:00:00.000000000 Z
11
+ date: 2023-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cells-rails