manage 1.3.31 → 1.3.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2450c74b9805b826ed7d452f1fa60d6d95efa208
4
- data.tar.gz: 96be1e3f8a210dc7e31a09039057f68628a59ff0
3
+ metadata.gz: fb9474234a06c14b696a52e5a2be4c589218aef1
4
+ data.tar.gz: 5007afac0a3063e18aff112437e899282a52a443
5
5
  SHA512:
6
- metadata.gz: 1d5b90159c1e14f132353354e4d635fea799b0ee83455506a444e2b578fdf3da94a4bb2f8218fe1b465c48f948c956743a481e67b01bc8a151bd907b9079a72b
7
- data.tar.gz: a68dab583dabb9c6290e449614f64c25624439684794a61093b648185ff96cfe98829260920f80c25a5c237b1412a3fced4de058a196b89418e70fa1fb301b8f
6
+ metadata.gz: 7332011960e519ff236f77cfea966f0c726852b6fd909362d11e2fbbbba7a71e22352bffc75be04516d227f8ba27404d36d4cf9dcd91b6295db23bfa6b59349e
7
+ data.tar.gz: 533035fbde1b33bea767afed2fbd53f09b2673f5caad472f478822604cf881557ca1e8812b8086b35926763cb3230a94a8f5635b0c0202d2a8808f1d623a163d
@@ -4,7 +4,7 @@ module Manage
4
4
  class << self
5
5
  def field_value(scope, field_data)
6
6
  current_field, rest_field_parts, custom_query, custom_format = _parse_field_data(field_data)
7
- value = scope.public_send(current_field)
7
+ value = scope.respond_to?(current_field) ? scope.public_send(current_field) : "missing index field '#{current_field}'"
8
8
 
9
9
  if _is_field_relation?(value)
10
10
  value = custom_query.present? ? custom_query.call(value) : value
@@ -1,3 +1,3 @@
1
1
  module Manage
2
- VERSION = "1.3.31"
2
+ VERSION = "1.3.32"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.31
4
+ version: 1.3.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Empower United
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-22 00:00:00.000000000 Z
12
+ date: 2014-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails