duck_map 0.8.7 → 0.8.8

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: c14f7c61a0d5eb21f3af37cdb6ddfe972a9cf829
4
- data.tar.gz: fe4315309e12f88011699961c56e326f01a91314
3
+ metadata.gz: 998646b7a2ecbbb0b71bf7af8cd501999084e7a0
4
+ data.tar.gz: 19d024332882f156363d8acd560a342b23559927
5
5
  SHA512:
6
- metadata.gz: a70b9be34c79b8cd96fa932e73f27a59ec726d7130d961d1715e2c93a96ce595e0b01e933fb2bd9d64a887532fb3d6c0c3c46f54a348a9169c204e29df6ebc6e
7
- data.tar.gz: aa942c479137dc83e4442a21c76aef4082be90a33ef4dfae02d1e384086488879bf294135a7534edf9e2d2d72b8ac39d6b1fef5461f5a82e1257e51b2537ba74
6
+ metadata.gz: ae04e83768656a7c138333239256016407d27ae1adaa54f4fb0c82689daa592439740d323eed8f69347e4064b91923b97107fb8f41d400260131aa7c552efe9f
7
+ data.tar.gz: fcffff8d3d4b67d46c36c67a34a16dac12e469c911080de344130431959f3e07f31339562b6e61ae66257d80c7cfdd3e71e4cdbf6b3c4057f7db71b50f87db8b
@@ -82,7 +82,7 @@ module DuckMap
82
82
 
83
83
  elsif !options[:handler][:model].blank?
84
84
 
85
- data_rows = options[:handler][:model].send(:all)
85
+ data_rows = options[:handler][:model].send(:all).to_a
86
86
 
87
87
  else
88
88
 
@@ -117,14 +117,13 @@ module DuckMap
117
117
 
118
118
  elsif !options[:handler][:model].blank?
119
119
 
120
- data_rows = options[:handler][:model].send(:all)
120
+ data_rows = options[:handler][:model].send(:all).to_a
121
121
 
122
122
  elsif !options[:model].blank?
123
123
 
124
124
  # this model is not set by developer
125
125
  # it is set in code in sitemap_build using get_model_class
126
- data_rows = options[:model].send(:all)
127
-
126
+ data_rows = options[:model].send(:all).to_a
128
127
  end
129
128
 
130
129
  # data_rows may have changed from an Array to a model object.
@@ -1,3 +1,3 @@
1
1
  module DuckMap
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duck_map
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Duckett