Commit Graph

19 Commits

Author SHA1 Message Date
jonatack 06f99e424c Code cleanup
indentation, spacing, and 80 character max width for readability
2013-12-08 21:51:43 +01:00
Alejandro Babio 47d7a95eac Allow sort by a field, and not use in search.
Accepts sort column only if it's a ransortable_attribute.

accepts sort column only if it's a ransortable_attribute.
2013-10-25 15:36:52 -03:00
Ryan Bigg 3250d339be Merge pull request #204 from jhdavids8/separate_search_sort_attributes
Separate searchable and sortable ransackable attributes
2013-09-01 15:51:30 -07:00
jonatack 5a522b4f4a Add Rails 4 compatibility to master 2013-08-06 19:00:52 +02:00
Jamie Davidson 74fc973992 Separated searchable attributes from sortable attributes so either can be overwritten in a model 2013-02-19 22:45:02 -05: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
Ryan Bigg 2856ac6343 Added custom search param key feature refs #43
Merges in #81
2012-04-11 11:58:27 -04:00
Ernie Miller e20c4dfc24 Version bump, Rails 3.2 compat (fixes #49) 2012-01-20 15:13:27 -05:00
Ernie Miller 5d59346020 Fix not using longest possible association name first in traverse 2011-10-14 11:33:19 -04:00
Ernie Miller 3f9fa1c2bb Bump version, use polyamorous 2011-09-03 15:37:02 -04:00
Ernie Miller c156fa4a7a Don't let _ be contained in polymorphic class. Fixes #12 2011-08-04 17:10:33 -04:00
Ernie Miller ce0b0a7d22 Get specs passing in 1.8.7 2011-07-18 09:51:28 -04:00
Ernie Miller 74ff6c7930 More specs 2011-07-17 19:40:07 -04:00
Ernie Miller 747b414110 Strip out inaccessible associations from form helper attribute collections 2011-05-30 13:00:59 -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 ecd42f4a83 WIP: move away from contextualize, toward bind 2011-04-09 20:55:28 -04:00
Ernie Miller 10d720104d Initial support for polymorphic belongs_to associations 2011-04-08 11:33:10 -04:00
Ernie Miller 294015309b Initial commit. 2011-03-30 20:31:39 -04:00