spatial_features 1.5.1 → 1.5.2

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: 3398bdc7fdd768d31153afe3f6e37578d69bec7f
4
- data.tar.gz: f4b1ef3cde4089d05d59688fa74b1f300a30495f
3
+ metadata.gz: ed38fef2372d934ce3ac37ab4119209df532f5b4
4
+ data.tar.gz: ae236c019c91fd2f10e4f9a385e4ca22794ceb46
5
5
  SHA512:
6
- metadata.gz: 063a5c623ddcb17727a9036c7a7f1221e812fd039c872952ddfbb8aa2372f1b39d9c77caafd97aec63882f5f505e83eb33b158060865d61f2cc104064ed98c07
7
- data.tar.gz: 95655407c3a5305f4652237de67a9edb6aeb0edc18efae3e85aa0e87a01e57ddd581a3edc5876904639ba5d8c0a805b750b185e013e7bd7b3e89ba0e1265d635
6
+ metadata.gz: a095d1e3e5057f4ed07bfd8568a582ebe218975198b919380da6597be7f760137bc9331ec0c12bbcba56f9670a89ce20d37e8f35aa5b46a8818b37436c5ae1c7
7
+ data.tar.gz: 05009d3f60028e36981df24276e1bf59708046a49dfe483533397b565eafd7aae95216c8a61157910978544606f3337b484a705d2120ea3d6d83804a0fcb1b06
@@ -75,12 +75,7 @@ module SpatialFeatures
75
75
  end
76
76
 
77
77
  def features
78
- case self
79
- when ActiveRecord::Base
80
- Feature.where(:spatial_model_type => self)
81
- else
82
- Feature.where(:spatial_model_type => self, :spatial_model_id => all)
83
- end
78
+ Feature.where(:spatial_model_type => self)
84
79
  end
85
80
 
86
81
  # Returns a scope that includes the features for this record as the table_alias and the features for other as #{table_alias}_other
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
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.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace