backbone_extensions 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,10 +70,10 @@
70
70
  if (options.parse) {
71
71
  var associations = {
72
72
  hasMany: function(assocResponse, association, newOptions) {
73
- association.add(assocResponse, newOptions);
73
+ association.add(_(assocResponse).map(function(response) { return association.parse(response); }), newOptions);
74
74
  },
75
75
  hasOne: function(assocResponse, association, newOptions) {
76
- association.clear({silent: true}).set(assocResponse, newOptions);
76
+ association.clear({silent: true}).set(association.parse(assocResponse), newOptions);
77
77
  }
78
78
  };
79
79
 
@@ -1,3 +1,3 @@
1
1
  module BackboneExtensions
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backbone_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  segments:
128
128
  - 0
129
- hash: 806858613652291946
129
+ hash: -2290577427496042019
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements:
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  segments:
137
137
  - 0
138
- hash: 806858613652291946
138
+ hash: -2290577427496042019
139
139
  requirements: []
140
140
  rubyforge_project:
141
141
  rubygems_version: 1.8.24