simple_drilldown 0.6.0 → 0.6.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
  SHA256:
3
- metadata.gz: 3a69810eb60aa499744a6989bad20efed263b05fc51dfcb094f151494deacbad
4
- data.tar.gz: e3402d01f9a8a19683c6c4095fa47725eede9dda5434ff2dd9a43cb5d5e75643
3
+ metadata.gz: 53f9f0ff7f16bcfcd62b638ed5b3bb798f09201a0fb5dc4d5c2fcc766ed88965
4
+ data.tar.gz: 2b7281ee154aa2f536638de060a261876d64da5e4a8b7e69734acff3624d80c9
5
5
  SHA512:
6
- metadata.gz: 7701b13e4ee048dd707b9e5a787e2081932ad301cb62eb028e770033664a6d7696267fd2a409a79a540db73a06026305b2bd2eee597fdd8196c7568db161d2f6
7
- data.tar.gz: 5a9a820ecee0516f76bebb0a3ce64325a80e0e3f71f4855b2529ab07b451cf87db2148544114343f40d5f35e624bf5bac8c614ca600642ca8127b62f6ffc072c
6
+ metadata.gz: a9db993aa1a44902eca10b9b83e7dc6dab95b51301ef4b12baca8c18fd0e696c0ae0177dfcd2b256e486fac09b3d327cd96d0108bd3e5aaef66015f8728dd7cf
7
+ data.tar.gz: 4f3d1e4b045b608b1917b453e48ac6aaa1448f21c593a2124a8bde05b53de069b11836792376083ce89ca94ff6ab2dc482cd963e45dc7ad70ba4a97164332a6a
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'simple_drilldown/drilldown_helper'
3
+ require 'simple_drilldown/helper'
4
4
  require 'simple_drilldown/search'
5
5
 
6
6
  module SimpleDrilldown
7
7
  class Controller < ::ApplicationController
8
- helper DrilldownHelper
8
+ helper Helper
9
9
 
10
10
  LIST_LIMIT = 10_000
11
11
 
@@ -539,7 +539,7 @@ module SimpleDrilldown
539
539
  end
540
540
  joins = self.class.make_join([], c_target_class.name.underscore.to_sym, list_includes)
541
541
  list_conditions = list_conditions(conditions, values)
542
- base_query = c_target_class.unscoped.where(c_base_condition).joins(joins).order(@list_order)
542
+ base_query = c_target_class.unscoped.where(c_base_condition).joins(joins).order(c_list_order)
543
543
  base_query = base_query.where(list_conditions) if list_conditions
544
544
  result[:transactions] = base_query.to_a
545
545
  end
@@ -2,8 +2,7 @@
2
2
 
3
3
  module SimpleDrilldown
4
4
  # View helper for SimpleDrilldown
5
- # FIXME(uwe): Rename to Helper
6
- module DrilldownHelper
5
+ module Helper
7
6
  def value_label(dimension_index, value)
8
7
  dimension = @dimensions[dimension_index]
9
8
  return nil if dimension.nil?
@@ -1,3 +1,3 @@
1
1
  module SimpleDrilldown
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_drilldown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch
@@ -126,8 +126,8 @@ files:
126
126
  - lib/generators/drilldown_controller/templates/drilldown_controller_test.rb.erb
127
127
  - lib/simple_drilldown.rb
128
128
  - lib/simple_drilldown/controller.rb
129
- - lib/simple_drilldown/drilldown_helper.rb
130
129
  - lib/simple_drilldown/engine.rb
130
+ - lib/simple_drilldown/helper.rb
131
131
  - lib/simple_drilldown/routing.rb
132
132
  - lib/simple_drilldown/search.rb
133
133
  - lib/simple_drilldown/version.rb