clark_kent 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/clark_kent/report_filters_controller.rb +1 -1
- data/app/controllers/clark_kent/reports_controller.rb +1 -1
- data/app/helpers/clark_kent/application_helper.rb +1 -1
- data/app/views/clark_kent/reports/_object_filter.html.erb +1 -1
- data/lib/clark_kent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd4b7b0fe73cf32b6f89f115dd3c71ad4cadcb2a
|
4
|
+
data.tar.gz: '0199c5dc092b9590283cb654e0551e517595ec84'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d7d3da93e4441b7639f06f1d4ca3da37b6c40287e46040e5d4bb330e1176152127b9dd98e267d29c82b2e476f1442cf4c652d2166b4d123565c2ec0965114d4
|
7
|
+
data.tar.gz: 3dcae1ef6a69cca44f7088fd71f9c6cb716193524543ea4600ccf99a3cfd81588782b77e8ad9dd31b4bb8de1be351d1c9c54253b6d3c7884b64fb81c1fb628b6
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class ClarkKent::ReportFiltersController < ClarkKent::ApplicationController
|
2
2
|
before_action :prepare_report_filter
|
3
|
-
before_action :prepare_report
|
3
|
+
before_action :prepare_report
|
4
4
|
|
5
5
|
def new
|
6
6
|
@report_filter = ClarkKent::ReportFilter.new(filterable_id: @filterable.id, filterable_type: @filterable.class.name)
|
@@ -79,7 +79,7 @@ module ClarkKent
|
|
79
79
|
|
80
80
|
def collection_for(report_filter,name)
|
81
81
|
if report_filter.filterable.collection_for(name).is_a? Symbol
|
82
|
-
|
82
|
+
current_user.send(report_filter.filterable.collection_for(name))
|
83
83
|
else
|
84
84
|
report_filter.filterable.collection_for(name)
|
85
85
|
end
|
data/lib/clark_kent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clark_kent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|