Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backward compatibility #32

Open
openhood opened this issue Sep 23, 2009 · 0 comments
Open

Backward compatibility #32

openhood opened this issue Sep 23, 2009 · 0 comments

Comments

@openhood
Copy link

Please replace line 99 of search.rb
scope = conditions.inject(klass.scoped(current_scope)) do |scope, condition|
with
scope = conditions.inject(klass.scoped(current_scope || {})) do |scope, condition|
otherwise it doesn't work with Rails 2.2.2

This issue was already described here http://binarylogic.lighthouseapp.com/projects/16601/tickets/94-nil-object-error but no solution has been given apart from upgrading to Rails 2.3.x, which sadly is often not possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants