lichao
2f5c6f60e8
Add ability to config PostgreSQL ORDER BY ... NULLS FIRST or NULLS LAST, close #1125
2020-12-09 18:59:48 +08:00
Sean Linsley
f570a402bf
improve memory usage
2017-12-31 20:30:53 -06:00
Tom Bowden
15a62a2d41
Add an optional default arrow for unsorted fields
2017-07-12 11:57:11 +01:00
Garett Arrowood
9d666f815f
Add config to turn off boolean conversions
2016-12-11 09:50:56 -05:00
Jon Atack
f7abc05c2e
Documentation and formatting follow-up to PR #726
2016-09-29 15:17:30 +02:00
Garett Arrowood
c8a256a88e
Update documentation with arrow customization info
2016-09-28 06:36:20 -04:00
Garett Arrowood
38c34ed314
Add custom_arrows config functionality
2016-09-27 18:03:55 -04:00
Jon Atack
d4daf64e74
Add documentation for Ransack configuration options
...
[skip ci]
2015-08-28 00:00:42 +02:00
Josh Hunter
95d45915fd
Add ability to hide sort order indicators via Ransack.configure
...
Author: Josh Hunter <josh-hunter@am.com>
Date: Fri Aug 21 12:21:32 2015 -0500
Closes #577 .
2015-08-27 23:42:58 +02:00
Jon Atack
a591075976
Document `search_key=(name)` method in the code.
...
[skip ci]
2014-11-22 23:58:32 +01:00
Jon Atack
29428ae481
Remove unneeded namespacing
2014-11-21 20:03:20 +01:00
Jon Atack
dccc871a72
Move string constants into Ransack::Constants
2014-10-09 23:48:38 +02:00
Jon Atack
0ff7f0cdb1
Use constants instead of string keys.
...
At least until we are all using the upcoming Ruby 2.2 which
will make this unnecessary.
2014-10-08 13:56:29 +02:00
Jon Atack
46ab1030f7
Reference string constants rather than repeatedly
...
allocating the same string in order to deduplicate
commonly-used strings, reduce object allocations
and memory usage.
2014-10-06 23:27:55 +02:00
Jon Atack
ea46d4d8de
Reduce object allocations and speed up Ransack by
...
extracting commonly used strings into top level Ransack
constants.
2014-10-04 00:44:28 +02:00
Jon Atack
a7fdc51da4
Follow up to #373 . Fix Rspec deprecation error in test.
2014-05-16 00:23:06 +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
7e68db08d8
Follow up to #370 .
2014-05-13 12:10:47 +02:00
Artem Baguinski
99840fcc28
arel_predicate can be a proc...
...
...accepting typecasted, but yet unformatted, value
2014-05-12 16:58:33 +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
jonatack
49c1e3134c
Use Ruby 1.9 hash syntax
2013-08-04 15:13:41 +02:00
Asfand Qazi
afdd357fae
Allow adding of custom predicates that take arrays (like IN/NOT IN)
2012-05-02 07:54:12 +01:00
Ryan Bigg
adf40447c9
Change set_search_key_name Configuration method to be a true setter, renamed to search_key=
...
Related to #81
2012-04-11 16:35:54 -04:00
Marek Hulan
9a71cbf8b8
Added custom search param key feature refs #43
...
Including specs. I didn't find any other sane place where a behaviour
should be changed. I don't understand why you define :q in
Ransack::Naming::Name so I ignored it. Still seems to work pretty good
in sort_link helper.
Enabled global search_key configuration refs #81
You can configure new default search key parameter
(default is still :q). Specs are included as well.
New functionality is documented in README.md
I also removed my specifis lines from .gitignore.
2012-04-11 14:29:30 -04:00
Ernie Miller
e5c7d8be2b
DRY up predicate detection, add some starter docs
2011-06-06 21:32:03 -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
294015309b
Initial commit.
2011-03-30 20:31:39 -04:00