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

22 commits

Author SHA1 Message Date
Tom Bowden
15a62a2d41 Add an optional default arrow for unsorted fields 2017-07-12 11:57:11 +01:00
Jon Atack
ae237535c7 Naming is hard 😬😅 2016-09-30 19:40:12 +02:00
Jon Atack
bb2af903d4 Final(?) readability/naming/local vars pass over tests for PR #726 2016-09-30 19:14:21 +02:00
Jon Atack
4c98866d5c Add tests: changing an arrow should respect prev change of other
Follow-up to PR #726.
2016-09-30 18:44:24 +02:00
Jon Atack
f75504f079 Add tests to PR #726 that change one up and down arrow only
TODO: Avoid cloning and restoring Ransack.options in each test.
2016-09-29 16:32:51 +02:00
Jon Atack
f73dd6af8e Minor tests cleanup from PR #726 2016-09-29 16:05:58 +02:00
Jon Atack
a5be55b328 Follow-up to PR #726, no need to freeze strings in tests.
[skip ci]
2016-09-29 15:45:25 +02:00
Jon Atack
f7abc05c2e Documentation and formatting follow-up to PR #726 2016-09-29 15:17:30 +02:00
Garett Arrowood
208a222436 Add configuration test support for custom_arrows 2016-09-27 18:04:27 -04:00
Michael Pavling
0abaab4b1e allowing ':wants_array' to be passed as 'false' in predicate options 2015-03-24 09:01:37 +00:00
irmiller22
9cd869431c updated rspec gemspec version to 2.14.0, changed old should syntax to newer expect syntax 2014-05-15 14:29:46 -04: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
Washington Luiz
b4973315e9 Merge branch 'master' into bring-rails-3
Conflicts:
	.travis.yml
	Gemfile
	README.md
	lib/ransack/adapters/active_record/3.0/context.rb
	lib/ransack/adapters/active_record/3.1/context.rb
	lib/ransack/adapters/active_record/3.2/context.rb
	lib/ransack/adapters/active_record/base.rb
	lib/ransack/adapters/active_record/context.rb
	lib/ransack/constants.rb
	lib/ransack/context.rb
	lib/ransack/helpers/form_builder.rb
	lib/ransack/helpers/form_helper.rb
	lib/ransack/nodes/attribute.rb
	lib/ransack/nodes/condition.rb
	lib/ransack/nodes/grouping.rb
	lib/ransack/nodes/sort.rb
	lib/ransack/predicate.rb
	lib/ransack/translate.rb
	ransack.gemspec
	spec/blueprints/people.rb
	spec/ransack/adapters/active_record/base_spec.rb
	spec/ransack/adapters/active_record/context_spec.rb
	spec/ransack/configuration_spec.rb
	spec/ransack/dependencies_spec.rb
	spec/ransack/helpers/form_builder_spec.rb
	spec/ransack/helpers/form_helper_spec.rb
	spec/ransack/predicate_spec.rb
	spec/ransack/search_spec.rb
	spec/ransack/translate_spec.rb
	spec/support/schema.rb
2014-04-10 00:28:29 -03:00
jonatack
787eb3c1d1 Code cleanup 2013-12-15 19:27:50 +01:00
jonatack
1e24b60906 Code cleanup 2013-12-15 13:30:27 +01: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
e69031b78a Correct search_key= usage in configuration_spec
Fixes broken build #30
2012-04-11 16:44:10 -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
62b7bd2de8 Enable TravisCI, add spec for add_predicate 2011-07-17 19:04:00 -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