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

ar-extensions disrupts activerecord scope conditions #13

Open
ghazel opened this issue Jan 12, 2011 · 3 comments
Open

ar-extensions disrupts activerecord scope conditions #13

ghazel opened this issue Jan 12, 2011 · 3 comments

Comments

@ghazel
Copy link

ghazel commented Jan 12, 2011

Without ar-extensions:

>> User.scoped(:conditions => {"users.name" => "bob"})
User Load (1.0ms)  SELECT * FROM `users` WHERE (`users`.`name` = 'bob')

With ar-extensions:

>> User.scoped(:conditions => {"users.name" => "bob"})
User Load (0.0ms)  Mysql::Error: Unknown column 'users.users.login' in 'where clause': SELECT * FROM `users` WHERE (`users`.`users.login` = 'bob')
@zdennis
Copy link
Owner

zdennis commented Jan 12, 2011

What version of Rails/ActiveRecord and ar-extensions are you using?

1 similar comment
@zdennis
Copy link
Owner

zdennis commented Jan 12, 2011

What version of Rails/ActiveRecord and ar-extensions are you using?

@ghazel
Copy link
Author

ghazel commented Jan 12, 2011

Rails/ActiveRecord 2.3.10, ar-extension 0.9.3

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

2 participants