query_report 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module QueryReport
8
8
  chart_on_pdf: true, paginate: true
9
9
  }
10
10
  class Report
11
- attr_accessor :params, :chart, :charts, :filters, :search, :scopes, :current_scope, :options
11
+ attr_accessor :params, :chart, :charts, :filters, :scopes, :current_scope, :options
12
12
 
13
13
  def initialize(params, options={}, &block)
14
14
  @params = params
@@ -102,6 +102,11 @@ module QueryReport
102
102
  @scopes = @scopes.uniq
103
103
  end
104
104
 
105
+ def search
106
+ apply_filters_and_pagination
107
+ @search
108
+ end
109
+
105
110
  private
106
111
  def apply_filters_and_pagination
107
112
  return if @applied_filters_and_pagination
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-04 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ransack