magic_addresses 0.0.13 → 0.0.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 538e746ba0ba80f848ed94583b01386b48dc0bb7
|
4
|
+
data.tar.gz: b297ed07967a01269f7ccefc1af94779980baaa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45656f66df6411d2c79f43efa01ba1fd9654005aba811690660b89e6fbf1fec12e02a6e3453cd685c980b35a06aa02b39f378ac2ef050e53fd49e4f82d43bea9
|
7
|
+
data.tar.gz: 8b195413d73f980401beeb910ba8587c80878fc1304bf86ace34e67f921bfc0b4106825fbeef80ad3e541f27b37e1dfd8f95a4d12497a9a0533c0f7c700e0f51
|
@@ -21,7 +21,7 @@ class UpdateMagicAddresses < ActiveRecord::Migration
|
|
21
21
|
if that.owner_type.present? && that.owner_id.present? && "#{that.owner_type}".constantize.find(that.owner_id.to_i)
|
22
22
|
MagicAddresses::Addressible.create!( address_id: that.id, owner_type: that.owner_type, owner_id: that.owner_id, default: that.default )
|
23
23
|
end
|
24
|
-
sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.
|
24
|
+
sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.postalcode, street_number: that.street_number )
|
25
25
|
sames.each do |this|
|
26
26
|
unless this == that
|
27
27
|
MagicAddresses::Addressible.create!( address_id: that.id, owner_type: this.owner_type, owner_id: this.owner_id, default: this.default )
|
@@ -21,7 +21,7 @@ class UpdateMagicAddresses < ActiveRecord::Migration
|
|
21
21
|
if that.owner_type.present? && that.owner_id.present? && "#{that.owner_type}".constantize.find(that.owner_id.to_i)
|
22
22
|
MagicAddresses::Addressible.create!( address_id: that.id, owner_type: that.owner_type, owner_id: that.owner_id, default: that.default )
|
23
23
|
end
|
24
|
-
sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.
|
24
|
+
sames = MagicAddresses::Address.where(latitude: that.latitude, longitude: that.longitude, zipcode: that.postalcode, street_number: that.street_number )
|
25
25
|
sames.each do |this|
|
26
26
|
unless this == that
|
27
27
|
MagicAddresses::Addressible.create!( address_id: that.id, owner_type: this.owner_type, owner_id: this.owner_id, default: this.default )
|