rogue-girl-rails 0.1.1 → 0.2.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: 44fc1aefb28157b905a1b76f6649155782e78a13
4
- data.tar.gz: 4dec682c93b52a706f54f46016067d3f533b8e0f
3
+ metadata.gz: ce99c0b0bae585f34e2537b451e9b1fa6cebd55d
4
+ data.tar.gz: 648b105586a3dac9f1c4db1e5d5db51b20e2f347
5
5
  SHA512:
6
- metadata.gz: 5144618118181bbcebcdaa488f3f711b067542000d1f15b8727f280afb28dc042506960ed944ec483c6601f65fcb4e327384a72061dd4900bb012f569825dfc1
7
- data.tar.gz: ede9a2f3144ea0c9b1c74d39100d89bb874f5fca5a310c1787d78dae7f71d41f2aa20b1e0fe3cf962c45171e2a12cb1f91e0be9541424eb452080899ff706583
6
+ metadata.gz: fbc6bea287ac5e1061bc1788d6643206dc1bd83d79e4c40d839af95ba6bf6fe2d73d2ecfb338c96d423b8651951e8c2c210237e3d95dfecf4af4ebe92217d767
7
+ data.tar.gz: f222a9482dcaec777f5160149e4dd07b52e1284e1066ec1ddb0da9660389629489eefb8c7d31bca7a5c727357beb9fb0cd702f620b80f46d8b6f020a95a1e6da
@@ -1,7 +1,7 @@
1
1
  module Rogue
2
2
  module Girl
3
3
  module Rails
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
7
7
  end
@@ -696,7 +696,7 @@ exports = typeof(global) !== 'undefined' ? global : this
696
696
 
697
697
  VERSION.MAJOR = 0;
698
698
 
699
- VERSION.MINOR = 1;
699
+ VERSION.MINOR = 2;
700
700
 
701
701
  VERSION.PATCH = 1;
702
702
 
@@ -805,7 +805,9 @@ exports = typeof(global) !== 'undefined' ? global : this
805
805
  this.callback = callback;
806
806
  this.attributes = {};
807
807
  this.traits = {};
808
- this.sequences = {};
808
+ this.sequences = {
809
+ id: 1
810
+ };
809
811
  this.proxy = new RogueGirl.Definition.Proxy(this, this.attributes);
810
812
  this.proxy.define(function() {
811
813
  return this.sequence('id', function(n) {
@@ -1002,7 +1004,7 @@ exports = typeof(global) !== 'undefined' ? global : this
1002
1004
  associations = [];
1003
1005
  for (name in attributes) {
1004
1006
  value = attributes[name];
1005
- if (value.__association__ != null) {
1007
+ if ((value != null) && (value.__association__ != null)) {
1006
1008
  associations.push(value.__association__);
1007
1009
  delete attributes[name];
1008
1010
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rogue-girl-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Molnar