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

Use arel_table instead of table_name and class_eval. #13

Merged
merged 2 commits into from Jan 14, 2014
Merged

Use arel_table instead of table_name and class_eval. #13

merged 2 commits into from Jan 14, 2014

Conversation

schuetzm
Copy link
Contributor

This is to ensure that the scopes can be correctly chained upon other scopes and work correctly across joins.

(This builds on #12)

scope (and default_scope) without lambda have been deprecated in Rails 4.
This change fixes that and also removes support for Rails 2.
This is to ensure that the scopes can be correctly chained upon
other scopes and work correctly across joins.
@jfeldstein
Copy link

@pjb3 This is legit. Will you merge?

pjb3 added a commit that referenced this pull request Jan 14, 2014
Use arel_table instead of table_name and class_eval.
@pjb3 pjb3 merged commit 40486dc into pjb3:master Jan 14, 2014
@schuetzm schuetzm deleted the use-arel branch January 14, 2014 09:50
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

Successfully merging this pull request may close these issues.

None yet

3 participants