simple_drilldown 0.3.5 → 0.4.0

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: 388fda7e00b8742770fafabfe6742b0fa910bd6055ba7dc8dfe323c46a2bca74
4
- data.tar.gz: a765fbd6f39829ecf2ac58c40b44e48095f502530f30a26b75e3d6fed0513538
3
+ metadata.gz: e6ff606b085525103af2a05ad54467a205226cde038b528474e751f2e2b080a0
4
+ data.tar.gz: 73e8da613077c2ec5fb87ba80e2b2e8f9c6f72700b98de976f046002284b28f2
5
5
  SHA512:
6
- metadata.gz: 49e848195ec11d171b4968f5645d15805241acb3dfed17a9df221204324d320e238dd70c23234c506282f279afeabcd01277340417a35d5dc3495c1ecbf59305
7
- data.tar.gz: dfa6461733db75343fb7c8b4199c08b83bfa49fb22e9a8babadba6ec30a5aa8b9317c91701e817b6635736438aff4e83923d50bfc22a6f61f733a0bd4cb38b46
6
+ metadata.gz: c2d6ebe228a5d6fa02bca708dbb83237e1ecd59ffdba56e75887275fb16656ed5c4aea4203ef6b265be5ee7b1c15b5b924796963c33f426ef50f6665d9c5a968
7
+ data.tar.gz: 1d47c86fa8970a1258a7a34b4f546930f11b2c592ed6492c4c8d425283a7a5fb89cf2fe236bd50f04a7f2ee9030669ca876e33bee229dc55c06c536ecec8b850
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimpleDrilldown
4
+ module Routing
5
+ def draw_drilldown(path, controller = path)
6
+ get "#{path}(.:format)" => "#{controller}#index", as: path
7
+ scope path do
8
+ %i[excel_export html_export index].each do |action|
9
+ get "#{action}(/:id)(.:format)", controller: controller, action: action
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleDrilldown
2
- VERSION = '0.3.5'
2
+ VERSION = '0.4.0'
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.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uwe Kubosch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-19 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick
@@ -127,6 +127,7 @@ files:
127
127
  - lib/simple_drilldown/drilldown_controller.rb
128
128
  - lib/simple_drilldown/drilldown_helper.rb
129
129
  - lib/simple_drilldown/engine.rb
130
+ - lib/simple_drilldown/routing.rb
130
131
  - lib/simple_drilldown/search.rb
131
132
  - lib/simple_drilldown/version.rb
132
133
  - lib/tasks/simple_drilldown_tasks.rake