Jon Atack
3254bb2bae
Model.search("") should not raise exception
...
Consider query like: "users?q=some-string" or "users?q=" and
controller content User.search(params[:q])
PR by @Bonias
2014-02-27 14:45:27 +01:00
jonatack
321040ba62
Allow for hashes with array sorts
...
PR by @grokse (Kurt Ronshausen)
2014-01-08 01:46:21 +01:00
jonatack
f7ba5ef986
Remove respond_to? method from lib/ransack/search.rb
2013-12-10 19:11:13 +01:00
jonatack
69ee4da6e1
No need for nil checking in commit #7597f0d
2013-08-16 21:04:37 +02:00
jonatack
7597f0da50
Remove blank params from sort_link, close issue 158
...
Fixes issue 158 (github.com/ernie/ransack/issues/158)
2013-08-12 14:43:15 +02:00
jonatack
fea42266cb
More Ruby 1.9 hash syntax
2013-08-12 10:27:50 +02:00
Ernie Miller
91c6ae0e8b
Style cleanup
2012-10-11 09:11:39 -04:00
Sergey Nartimov
375a139c0e
accept second argument in Search#respond_to?
...
See http://ruby-doc.org/core-1.9.3/Object.html#method-i-respond_to-3F
2012-10-11 15:50:08 +03:00
gleb
953ec1b502
inspect on Ransack::Search objects now will not load entire object graph
...
This means that:
1) inspect calls will be faster
2) inspect calls will be easier to understand
3) queries won't be executed until #result is called on the Search object
Fixes #115 with #121
2012-08-10 16:27:06 +10:00
Ernie Miller
3f9fa1c2bb
Bump version, use polyamorous
2011-09-03 15:37:02 -04:00
Ernie Miller
f6973b3a3b
Initial work on sort_link. Mostly ported from MetaSearch, changes coming soon
2011-08-13 16:36:40 -04:00
Ernie Miller
1c41a3ea2c
Add :only/:compound options to predicate_select, refactor ands/ors -> groupings
2011-06-05 14:29:54 -04:00
Ernie Miller
5c937d628f
SELECT DISTINCT instead of using group hack, and fix a glitch with grafting
2011-04-13 20:15:57 -04:00
Ernie Miller
77e570cf9c
Ransackers get classy. Also, laying the groundwork for authorization
2011-04-11 20:07:23 -04:00
Ernie Miller
294015309b
Initial commit.
2011-03-30 20:31:39 -04:00