admin_assistant 2.3.2 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/admin_assistant.gemspec +2 -2
- data/lib/admin_assistant/virtual_column.rb +6 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.0
|
data/admin_assistant.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "admin_assistant"
|
8
|
-
s.version = "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-
|
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
|
-
|
17
|
+
raw_value = search_params[@name.to_s]
|
18
|
+
value = if raw_value == 'true'
|
18
19
|
true
|
19
|
-
elsif
|
20
|
+
elsif raw_value == 'false'
|
20
21
|
false
|
21
|
-
|
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.
|
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-
|
12
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: will_paginate
|