spatial_features 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,8 @@ module ArcGISKmzFeatures
45
45
 
46
46
  ActiveRecord::Base.transaction do
47
47
  self.features.destroy_all
48
- new_features.each(&:save)
48
+ self.features = new_features # Update the association so after_feature_update knows about the new features
49
+ self.features.each(&:save)
49
50
 
50
51
  @feature_error_messages.concat new_features.collect {|feature| "Feature #{feature.name}: #{feature.errors.full_messages.to_sentence}" if feature.errors.present? }.compact.flatten
51
52
  if @feature_error_messages.present?
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spatial_features
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-02 00:00:00.000000000 Z
13
+ date: 2015-05-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails