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
Jon Atack
add49ea4f4
Merge pull request #320 from seanlinsley/318-followup
...
require the whole of Active Support's core extensions
2013-12-15 09:54:34 -08:00
jonatack
cb84f7f7b5
Minor code cleanup
...
80 characters screen width
2013-12-15 18:51:48 +01: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
Tyler Hunt
b1a8e020b0
Explicitly define and require dependencies.
2013-12-10 09:00:44 -05:00
jonatack
0a2e4caaa9
Catch up with changes in master branch
2013-12-07 01:51:55 +01:00
Alejandro Babio
3da2427e37
Add auth_object support to attribute & sort nodes when call
...
ransackable_attributes or ransortable_attributes.
2013-11-22 09:44:27 -03:00
Alejandro Babio
852c3db6c5
Only ransackable_attributes are valid for search. Fix spec and add one
...
to test search valid attributes. Remove unused formatter from schema.rb.
2013-10-29 20:16:49 -03:00
jonatack
fea42266cb
More Ruby 1.9 hash syntax
2013-08-12 10:27:50 +02: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
ff8138c32e
Cast values when determining if condition is valid. Fixes errors on blank dates
2011-06-22 22:16:44 -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