ar-extensions
ar-extensions copied to clipboard
ar-extensions disrupts activerecord scope conditions
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')
What version of Rails/ActiveRecord and ar-extensions are you using?
What version of Rails/ActiveRecord and ar-extensions are you using?
Rails/ActiveRecord 2.3.10, ar-extension 0.9.3