azahara_schema 0.3.13 → 0.3.14

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: b507dcb18875d9bb4f5f28126c24e614781829254de088dc6416fcc7d3cfc58e
4
- data.tar.gz: b44718dc7be81a03a71416b8db05c3c94b0f3544aa25dc099f9f41abff995b0c
3
+ metadata.gz: b794021b65384438db4b5668979b065354481cf2d727ff6ecdb5b72c16003fad
4
+ data.tar.gz: 83bf7e02292f640b1aa35bfa91aea3186ba3b7ebfc6acfc62d568235d253cf2d
5
5
  SHA512:
6
- metadata.gz: 97635b0eb75a69deaedb960caf7cc3cc9fd69dfdfcb489655076ee775ddcdbac6dcd4ef8ce784e92a464aae57a4c49b6c45e70a944ebe11f481650b0d16202df
7
- data.tar.gz: a43c3f980fcf1d36d5472c13e54d590508884e90ce1c081f03028c9a4059424a33a9a04d60593c1d00d0a5a5399d708513c111dd39d12d3c7122071025278398
6
+ metadata.gz: e2bb62d64c02693e0e95a18679b7156853fc2174c67bf2c2b20e51ac5aefef0f1d34813088794ceac55eecfef981a08b9ce444289dc05dca552f80bbc7784251
7
+ data.tar.gz: 518736da32fdea83ee97eef92cbfff0fb37620a727253bac13892d22f102aa3af7f87bebc30df1e7f7c51a5cc65fc5d1d54b4726dfe8a3f6138e8510b0e44c95
@@ -61,7 +61,7 @@ module AzaharaSchema
61
61
  end
62
62
 
63
63
  def value(record)
64
- attributes.collect{|a| a.value(record) }.join(concat_divider)
64
+ record.try(name) || attributes.collect{|a| a.value(record) }.join(concat_divider)
65
65
  end
66
66
 
67
67
  def arel_statement(operator, values)
@@ -1,3 +1,3 @@
1
1
  module AzaharaSchema
2
- VERSION = '0.3.13'
2
+ VERSION = '0.3.14'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azahara_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-18 00:00:00.000000000 Z
11
+ date: 2018-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails