projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ffeedc
)
tweak serialized attribute search. refs #1447
author
Tom Clegg <tom@clinicalfuture.com>
Wed, 27 Mar 2013 00:43:23 +0000
(17:43 -0700)
committer
Tom Clegg <tom@clinicalfuture.com>
Wed, 27 Mar 2013 00:43:23 +0000
(17:43 -0700)
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index eae4ede0ae99c0817460ff98503f46e8f87f2e7a..a80d93e42feb9b07c69589bf38b20b3f65799b6e 100644
(file)
--- a/
app/controllers/application_controller.rb
+++ b/
app/controllers/application_controller.rb
@@
-79,8
+79,8
@@
class ApplicationController < ActionController::Base
# Not quite the same thing as "equal?" but better than nothing?
value.each do |k,v|
if v.is_a? String
- conditions[0] << " and #{table_name}.#{attr} like ?"
- conditions << "%
:#{k}:
#{v}%"
+ conditions[0] << " and #{table_name}.#{attr}
i
like ?"
+ conditions << "%
#{k}%
#{v}%"
end
end
end