code4lib/ruby-oai — pull request #39 by rwd (2014-09-16 10:49:59+00:00)
Title: Prefix column names with model's table name in ActiveRecord wrapper.

If the model has a default scope which joins other tables, the references to column names in the ActiveRecord wrapper's SQL conditions and order clauses may be ambiguous, resulting in an SQL error.

This commit fixes that by prefixing the column names with the model's table name.