active_tools 0.0.14 → 0.0.15

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
  SHA1:
3
- metadata.gz: 5d8d93fd9b24a933ceb209c7f2bf932ed3d6b82f
4
- data.tar.gz: b47e31a3a7aaf0289737feef204b2b824f88ce5b
3
+ metadata.gz: 8bdb8683fdb26bd3ed759e298a7e0b667b465c27
4
+ data.tar.gz: 635db4c7f1ff33da17f7c1f801524ea41e70510a
5
5
  SHA512:
6
- metadata.gz: 66691f686808c28d4e1d1b18f397d3bbd6d57a1cad0d992fab602bc3493b9611d562a87ca10854560d34cc8e4caf3f40a0182ddc5ff74b5e08ec1250f1b7112d
7
- data.tar.gz: f79af52015bd434b7135870f203df69c81f24400ed279eca7ee2089f51d7f2d3503f4644dfea4834dd17eb6594afab9709b973e3bb7c2ffe41be3c2f8f709e02
6
+ metadata.gz: 03b46223cbd38960d99532a4f2ec580a7f330ae4ab61d47fa0bfdccc3c84f4a2498c2b476fbd361f86568a610ae4989c91e25d78f09f3be1cf69d86fadd37454
7
+ data.tar.gz: edb7a4550fda0fd9800e270b2186833a83bf8a4c47b9a80cbe479ab388a0209937c6baedd6f6308e7c656a81169a331418b4ef605f1737d29e202bc91f65d81c
@@ -30,7 +30,7 @@ module ActiveTools
30
30
 
31
31
  def read(name)
32
32
  valid_attribute?(name)
33
- target.send(name) if target
33
+ association.loaded? ? target.try(name) : association.reload.target.try(name)
34
34
  end
35
35
 
36
36
  def write(name, value)
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Kvon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-21 00:00:00.000000000 Z
11
+ date: 2014-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails