dynamic_controller 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.add_dependency 'ransack'
20
20
  s.add_dependency 'kaminari'
21
- s.add_dependency 'nql', '0.0.4'
21
+ s.add_dependency 'nql', '0.0.5'
22
22
 
23
23
  s.add_development_dependency 'rails'
24
24
  s.add_development_dependency 'sqlite3'
@@ -65,7 +65,8 @@ module DynamicController
65
65
  query_key = "query_#{params[:controller]}_#{params[:action]}"
66
66
 
67
67
  @search_query = if params.has_key?(:q)
68
- session[query_key] = params[:q]
68
+ session[query_key] = params[:q] if params[:q_persistent] == 'true'
69
+ params[:q]
69
70
  else
70
71
  session[query_key]
71
72
  end
@@ -1,3 +1,3 @@
1
1
  module DynamicController
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: 0.0.4
53
+ version: 0.0.5
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.0.4
61
+ version: 0.0.5
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rails
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -248,7 +248,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  segments:
250
250
  - 0
251
- hash: 590422993
251
+ hash: 925622353
252
252
  required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  none: false
254
254
  requirements:
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  version: '0'
258
258
  segments:
259
259
  - 0
260
- hash: 590422993
260
+ hash: 925622353
261
261
  requirements: []
262
262
  rubyforge_project:
263
263
  rubygems_version: 1.8.24