Commit Graph

16 Commits

Author SHA1 Message Date
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 d5b36a3aba Keep array values in "simple mode" when a predicate wants array (Fixes #20) 2011-09-02 12:42:58 -04:00
Ernie Miller 119d470304 Workaround for simple mode in/not_in, bump version 2011-07-24 13:03:23 -04:00
Ernie Miller 6fa15a20cd Don't use present? to check for presence (allow false as value). Fixes #9 2011-07-17 10:46:30 -04:00
Ernie Miller 59dd9ae754 Handle null/not null properly. Fixes #8 2011-07-15 07:17:02 -04:00
Ernie Miller ff8138c32e Cast values when determining if condition is valid. Fixes errors on blank dates 2011-06-22 22:16:44 -04:00
Ernie Miller e5c7d8be2b DRY up predicate detection, add some starter docs 2011-06-06 21:32:03 -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 cec4e3d64f Fix/add specs, remove duplicate base.rb for edge and 3.0 2011-06-04 18:01:12 -04:00
Ernie Miller ee84a09337 Make sure we are using the adapter's column hash in AR 3.0 2011-04-18 14:34:48 -04:00
Ernie Miller cef7b8ecea Workaround for 3.0 not having param_key and fix valid? on attr/sort 2011-04-18 13:59:47 -04:00
Ernie Miller 77e570cf9c Ransackers get classy. Also, laying the groundwork for authorization 2011-04-11 20:07:23 -04:00
Ernie Miller 62cf765c12 Ransacker implementation improvements 2011-04-11 12:04:31 -04:00
Ernie Miller 11dd0d63f4 WIP: refactor type casting behavior to better support ranasckers 2011-04-10 21:11:28 -04:00
Ernie Miller ecd42f4a83 WIP: move away from contextualize, toward bind 2011-04-09 20:55:28 -04:00
Ernie Miller 294015309b Initial commit. 2011-03-30 20:31:39 -04:00