cowtech-rails 1.9.0.0 → 1.9.0.1
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.
@@ -149,7 +149,7 @@ module Cowtech
|
|
149
149
|
# GET QUERY
|
150
150
|
args = params[parameter] if !args
|
151
151
|
|
152
|
-
if
|
152
|
+
if args.present? then
|
153
153
|
search, parameters = self.crud_query_parse_search(args)
|
154
154
|
|
155
155
|
# BUILD QUERY
|
@@ -225,7 +225,7 @@ module Cowtech
|
|
225
225
|
def crud_get_sort_param(default, valids = [])
|
226
226
|
sort_by = get_param(:sort_by, default)
|
227
227
|
mo = /^(?<what>[a-z0-9_]+)-(?<how>asc|desc)$/i.match(sort_by)
|
228
|
-
mo = /^(?<what>[a-z0-9_]+)-(?<how>asc|desc)$/i.match(default) if !mo || !(valids || []).include?(mo["what"])
|
228
|
+
mo = /^(?<what>[a-z0-9_]+)-(?<how>asc|desc)$/i.match(default) if !mo || !((valids || []).include?(mo["what"]))
|
229
229
|
|
230
230
|
sf = sort_by.split("-")
|
231
231
|
rv = OpenStruct.new({:what => mo["what"], :how => mo["how"].upcase})
|
data/lib/cowtech/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cowtech-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.0.
|
4
|
+
version: 1.9.0.1
|
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: 2011-07-
|
12
|
+
date: 2011-07-14 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: A general purpose Rails utility plugin.
|
15
15
|
email: shogun_panda@me.com
|