simple_drilldown 0.7.2 → 0.7.3

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: cee0cdbb64ae05c37521d974dba3f99c1ca6e3d459ff43d898f7bf5554227124
4
- data.tar.gz: 91532c9f27039c5f117a1c1a1fa43fb7bbcf3484dd4248b4207bd7d921f65d55
3
+ metadata.gz: d998f2cd5f57af22c3c8831275dad5d173180d99000f2770e02db5accf6183ab
4
+ data.tar.gz: c1dab92e5b931b7c2396ad59ffabd97e1b61c8b28bd58a30e5409216488a5dd8
5
5
  SHA512:
6
- metadata.gz: b04ed3837f8f104088992a942557d50ab3889f1e5264662f27705b568f4828b29e9b9fd0c485babdf66ebf774613fea3d1a4a6d0ff13b6adb73bcc1f3a7eb796
7
- data.tar.gz: 2e685226b70f9472f530669f88f35517044499acce6a88b005bf2e0181a8643d8558190eeb038996c68e3e457de52573d68bc2ab59c669d8ca85a6ab572dc6db
6
+ metadata.gz: 734f1d871a340e5b6f7c44e28eadc13f91e60b7492bead90f4b6681e0ec1f76db237042856350795d43ac3d0ed2b099dfd74ada3f3c5ba801019a57cd5bde217
7
+ data.tar.gz: 71fe4b0435b2ca9230f4baaea43535522ef48389f37fe1c03b895769de8bf045ba95be62eb39421a9cc7db81039fa94dd7a882f0a21e5fdf33e9ddd251fabb4a
@@ -36,6 +36,9 @@ module SimpleDrilldown
36
36
  # No default target class found
37
37
  end
38
38
  end
39
+ return unless base.c_target_class.try :paranoid?
40
+
41
+ base.c_base_condition = "#{base.c_target_class.table_name}.deleted_at IS NULL"
39
42
  end
40
43
 
41
44
  def base_condition(base_condition)
@@ -9,7 +9,7 @@ module SimpleDrilldown
9
9
  get "#{path}(.:format)" => "#{controller}#index", as: path
10
10
  scope path, controller: controller, as: path do
11
11
  %i[excel_export excel_export_records html_export].each { |action| get action }
12
- get "choices/:dimension_name", action: :choices, as: :choices
12
+ get 'choices/:dimension_name', action: :choices, as: :choices
13
13
  end
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleDrilldown
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_drilldown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2021-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick