1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00
Commit graph

29 commits

Author SHA1 Message Date
Sven Schwyn
72dd5d12d5 Use model scopes with Ransack (coded by @avit and @glebm). 2014-06-22 11:36:35 +02:00
Grey Baker
b835553aac Add ignore_unknown_conditions config options, and raise if it is false 2014-05-14 13:50:17 +01:00
Jon Atack
e072708cf2 Bracket spacing and line wrap 80 chars 2014-05-05 10:43:49 +02:00
Jon Atack
1abf8f6086 Maintain Ruby 1.8.7 syntax compatibility
since Rails 3.x stills supports Ruby 1.8.7 as per
http://guides.rubyonrails.org/v3.2.17/getting_started.html:
“Ruby language version 1.8.7 or higher.”
2014-05-01 15:55:39 +02:00
Brian Malinconico
725635e8fb Merge remote-tracking branch 'trunk/master' 2014-04-26 19:28:33 -04:00
Brian Malinconico
16b0413101 Merge remote-tracking branch 'trunk/master'
Conflicts:
	lib/ransack/search.rb
2014-03-26 20:21:22 -04:00
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
Bonias
ee3b496654 Model.search("") should not raise exception
Consider query like: "users?q=some-string" or "users?q=" and
controller content User.search(params[:q])
2014-02-27 10:29:43 +01:00
Brian Malinconico
e586c4c093 Removing empty joins when _any suffix is used with a blank array 2014-01-24 08:50:05 -05:00
jonatack
321040ba62 Allow for hashes with array sorts
PR by @grokse (Kurt Ronshausen)
2014-01-08 01:46:21 +01:00
Kurt Ronshausen
8a1760f111 Allow for hashes with array sorts 2014-01-06 10:04:29 -08:00
Sean Linsley
bb1bd746bc require the whole of Active Support's core extensions
this is a follow-up to #318
2013-12-15 11:37:23 -06:00
jonatack
f7ba5ef986 Remove respond_to? method from lib/ransack/search.rb 2013-12-10 19:11:13 +01:00
Tyler Hunt
b1a8e020b0 Explicitly define and require dependencies. 2013-12-10 09:00:44 -05:00
Denis Tataurov
c33fbddcc0 related with #159: remove from Ransack::search 2013-12-09 16:00:17 +04:00
Jon Atack
642a5fc09c No need for nil or presence checking 2013-08-16 21:11:14 +02:00
jonatack
69ee4da6e1 No need for nil checking in commit #7597f0d 2013-08-16 21:04:37 +02:00
Jon Atack
b1644d4d24 Fix #158 feature request (remove empty search params from sort_link params hash and URL)
Builds on the discussion in PR #207.

Submitted as a pull request to see if there is interest in having a shorter sort_link URL. 

If yes, will need some test coverage.
2013-08-12 23:06:46 +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