forest_liana 1.6.6 → 1.6.7

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: ce8dc1b8cf30b7f5734362bcd69b549d990a2b71
4
- data.tar.gz: 5aca5a5e19a92349d6503a0f8b3b72b3cbc40ab6
3
+ metadata.gz: d3ab65c63baf517449b0ed94f94501eccb02ca04
4
+ data.tar.gz: cfb8b403dca15cfd028a17e84985b89c917b0b30
5
5
  SHA512:
6
- metadata.gz: 3e7c2b6a3afbe0c786ac13efa22874e400cedbe85f8e9fb7ff076d83335f49db441239effcf598b705b37320a72057d7b0f6ac697f51b3040f335b209774239c
7
- data.tar.gz: 1567b0fe318660845cf31b843eaafe32ab09d79ab061cd526cfeb3e863900a35f273e23c9bd4d3addf8eca1c83ca8537bbc1b99a9ad5c6134f855daedc8f577e
6
+ metadata.gz: c970daa8351080491fef6556219048a6e4256cd16ffad5866a8341065f13385434b1e13d3c36cd6de16bb8a6f50f2527351a092253f3a3e5ef9d64f7a53f8cb1
7
+ data.tar.gz: fc769a2bcdc0465fd5a6470d2590b7548818626a928f29653fb446087beb5440d6f1f8c05bf2aace5962f7db4193a79ad77692afbb12f1c4b2214295db96b0bf
@@ -54,18 +54,16 @@ module ForestLiana
54
54
  end
55
55
 
56
56
  def order
57
+ order = 'DESC'
58
+
57
59
  # NOTICE: The generated alias for a count is "count_all", for a sum the
58
60
  # alias looks like "sum_#{aggregate_field}"
59
- field = 'all'
60
61
  if @params[:aggregate].downcase == 'sum'
61
62
  field = @params[:aggregate_field].downcase
62
- end
63
-
64
- if includes.size == 0
65
- "#{@params[:aggregate].downcase}_#{field} DESC"
66
63
  else
67
- "#{@params[:aggregate].downcase}_id DESC"
64
+ field = includes.size == 0 ? 'all' : 'id'
68
65
  end
66
+ "#{@params[:aggregate].downcase}_#{field} #{order}"
69
67
  end
70
68
 
71
69
  end
@@ -215,9 +215,6 @@ module ForestLiana
215
215
 
216
216
  operator, value = OperatorValueParser.parse(value)
217
217
 
218
- @records = @records
219
- .joins(field.to_sym)
220
-
221
218
  operator_date_interval_parser = OperatorDateIntervalParser.new(value,
222
219
  @params[:timezone])
223
220
  if operator_date_interval_parser.is_interval_date_value()
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.6.6"
2
+ VERSION = "1.6.7"
3
3
  end
Binary file