-
Notifications
You must be signed in to change notification settings - Fork 134
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
Fixes issues with Ruby 1.8.7, etc... #156
Conversation
…uires active_record.
"should inherit alias scopes from superclasses" creates an anonymous subclass for its test. Anonymous classes return nil for .name by default. It passed in 1.9 because Searchlogic::ActiveRecord::Scope#scopes's monkey patched `include?` was inadvertantly calling .respond_to?(key) on `result` instead of the AR class. In 1.8.7, it resulted in a syntax error `unexpected '.', expecting kEND` in `.respond_to?(key)` because name was nil. So, instead of looking up the AR class by name, now a reference to the class is passed in.
compact_conditions "should remove conditions with blank values". In Ruby 1.9, Hash#select returns a hash, but in 1.8, it returns an array of key/value pair arrays.
…liasing scopes by symbol that have arguments.
Fixes issues with Ruby 1.8.7, etc...
@johndouthat Thanks for the work you put into this! We're actually currently working on a fork for Rails 3 compatibility. If you'd like to help out (and get a first look), ping me and we will keep you in the loop during the upgrade process. |
Hi Mark, Yeah, I'd love to help out and take a look. Thank You, Sent from my iPhone On Apr 24, 2012, at 2:04 PM, Mark Coatesreply@reply.github.com wrote:
|
Thank you so much for Searchlogic. It's really great. I'm using it in several apps.
I'm going to try to work on Rails 3.2 compatibility in the near future, but for now I hope these changes help.