volt 0.5.0 → 0.5.1

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: 92e92321c95b13a37fe37cbb8f7a639a338a264c
4
- data.tar.gz: af72a815e19b40a9d6fb57977afea8f8186ec7e4
3
+ metadata.gz: 30b0c69987c064b09b40e3b87f548ebf79804b45
4
+ data.tar.gz: fad83883f99c44fb884a32bf4b63c9f65f52b911
5
5
  SHA512:
6
- metadata.gz: 0ae673bd0e6340fa5eed1529c18c45839b1f22008c31ad039ecf0aa38768495ee7e19888509207c94ab3b70494b0b5b03abaaae6a03c20ed2d9aa9fe42146604
7
- data.tar.gz: d2529b34a6540cdeeffc846ea757ac8e77b6a0d90c52523cc0d4fe662f8c264ead47db1abefe130148d22f0b01ae0718b664a602e1f7d5dfcadd100b7a417f32
6
+ metadata.gz: bb00336e8a30d6e3922e403149ffd621b098adff303d130b57cce654ce4464cbe922e540dc11eb47d072a9cf49d87130cad05a1fbdc6e973707e33349beabeda
7
+ data.tar.gz: 9623ba45ae061ec34e326ce3a6311bed0308e5dcedb2cd022fd1257ee8a68a0e933609388859741146231eae209f1267237aaebae1b963ebd6333f3ffd2e49a9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -50,8 +50,8 @@ module Persistors
50
50
 
51
51
  # When a model is added to this collection, we call its "changed"
52
52
  # method. This should trigger a save.
53
- def added(model)
54
- unless $loading_models
53
+ def added(model)
54
+ unless defined?($loading_models) && $loading_models
55
55
  model.persistor.changed
56
56
  end
57
57
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout