admin_assistant 2.3.2 → 2.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.2
1
+ 2.4.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "admin_assistant"
8
- s.version = "2.3.2"
8
+ s.version = "2.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Francis Hwang"]
12
- s.date = "2013-08-17"
12
+ s.date = "2013-12-03"
13
13
  s.description = "admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces."
14
14
  s.email = "sera@fhwang.net"
15
15
  s.extra_rdoc_files = [
@@ -14,12 +14,15 @@ class AdminAssistant
14
14
  end
15
15
 
16
16
  def attributes_for_search_object(search_params, compare_to_range)
17
- value = if search_params[@name.to_s] == 'true'
17
+ raw_value = search_params[@name.to_s]
18
+ value = if raw_value == 'true'
18
19
  true
19
- elsif search_params[@name.to_s] == 'false'
20
+ elsif raw_value == 'false'
20
21
  false
21
- else
22
+ elsif raw_value.blank?
22
23
  nil
24
+ else
25
+ raw_value
23
26
  end
24
27
  {@name => value}
25
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_assistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.4.0
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-08-17 00:00:00.000000000 Z
12
+ date: 2013-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: will_paginate