spatial_features 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f5e50275e49d340e9b3b705079063a296475211
4
- data.tar.gz: cdd28aa70864234435fdc1d676d26cec63763e03
3
+ metadata.gz: 642705ee15d1368c1dd83b7330d1a4a4fb0bdc13
4
+ data.tar.gz: 638cf73a67f0c7a78664ece2f26825d83dd63e80
5
5
  SHA512:
6
- metadata.gz: 20bf2f070aaa4858739d5ca51a65601f08b85c41221b710683a488f221ac76945444532f1d4867b6581b18b230578bd640cf56a75c1ab752a55d45524fbf5d7e
7
- data.tar.gz: 462ec7481f45b62159eaaf63886f4f083a73dc5e8c9c5c7c823c1dd4951029ec7dee36710596ce765a56881fe0540d0c866e0d73ac17b4f2533a7886fbf20025
6
+ metadata.gz: fa441b31d9b7ad4fa2490db60a4dea93113757d47272b39e9617d359fbfd828e49728d366d8b28531bc7d1e176060818b0c58216c5572a5ce396d49fee1d68d3
7
+ data.tar.gz: d32fce5ea30281ca4e9e264c717df982ca471010a0dcf68f0d309af75cd342692d43beedbc7b4fdb2099b80f990df292fa7ae125ad3534ad0cab2e7b167c8fe4
@@ -75,10 +75,10 @@ module SpatialFeatures
75
75
  end
76
76
 
77
77
  def features
78
- if self.respond_to?(:klass)
79
- Feature.where(:spatial_model_type => self.klass, :spatial_model_id => all)
80
- else
78
+ if all == unscoped.all
81
79
  Feature.where(:spatial_model_type => self)
80
+ else
81
+ Feature.where(:spatial_model_type => self, :spatial_model_id => all)
82
82
  end
83
83
  end
84
84
 
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "1.5.3"
2
+ VERSION = "1.5.4"
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.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace