zdennis / ar-extensions

ActiveRecord::Extension (aka ar-extensions) is a plugin to extend and enhance the functionality of ActiveRecord
http://www.continuousthinking.com/tags/arext
225 stars 45 forks source link

ar-extensions disrupts activerecord scope conditions #13

Open ghazel opened 13 years ago

ghazel commented 13 years ago

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 commented 13 years ago

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

zdennis commented 13 years ago

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

ghazel commented 13 years ago

Rails/ActiveRecord 2.3.10, ar-extension 0.9.3