simple_drilldown 0.3.5 → 0.4.0
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 +4 -4
- data/lib/simple_drilldown/routing.rb +14 -0
- data/lib/simple_drilldown/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6ff606b085525103af2a05ad54467a205226cde038b528474e751f2e2b080a0
|
4
|
+
data.tar.gz: 73e8da613077c2ec5fb87ba80e2b2e8f9c6f72700b98de976f046002284b28f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|