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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cff67d05d931728a4d59a4a6fda5228dbd06eeff
4
- data.tar.gz: b9d6e364e1cdd574c34f995b1a9434847886a476
3
+ metadata.gz: bd4b7b0fe73cf32b6f89f115dd3c71ad4cadcb2a
4
+ data.tar.gz: '0199c5dc092b9590283cb654e0551e517595ec84'
5
5
  SHA512:
6
- metadata.gz: f50b2f886b9d98d75cf32a5d854d3e2460173655834233764c80252504d8d217280fe8139cce95eb2b49bac5fd5893cc9759aa2da0f3461220db67a88bf9fc9e
7
- data.tar.gz: 00600cad919cf0694d33cbd53e8ac4922078176c55279f3dd494c9edbb2a99b58cfc3a1a73a0f34d4dd28f383555f15e69b56f2d6f408c859cacc1a3e65281c2
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, :prepare_filters
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)
@@ -1,6 +1,6 @@
1
1
  class ClarkKent::ReportsController < ClarkKent::ApplicationController
2
2
  require 'csv'
3
- before_action :get_these_params, :prepare_filters
3
+ before_action :get_these_params
4
4
 
5
5
  def set_manage_tab
6
6
  @manage_tab = 'reports'
@@ -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
- @filter_collections.send(report_filter.filterable.collection_for(name))
82
+ current_user.send(report_filter.filterable.collection_for(name))
83
83
  else
84
84
  report_filter.filterable.collection_for(name)
85
85
  end
@@ -5,7 +5,7 @@
5
5
  <div class="ih-row">
6
6
  <% options = case filter.collection.class.name
7
7
  when 'String', 'Symbol'
8
- @filter_collections.send(filter.collection)
8
+ current_user.send(filter.collection)
9
9
  when 'Array'
10
10
  filter.collection
11
11
  end %>
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
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
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: 2017-11-29 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails