The oracle_adapter can fail test_assign_ids IN associations_test.rb if
the records within the projects table were not created in ID order.
eg if the record with the ID of 2 was created before the record with
ID of 1.
This is because Oracle returns result sets without an ORDER BY clause
in what they term Native order, this is unlike databases like MySql
which sorts by the first column.
The follow code would fix the problem, though I am not sure if it is
the correct way of writing the fix.
class << self # Class methods
def find_some_with_patch(ids, options)
alias_method_chain :find_some, :patch
Can anyone suggest a better way of overloading the self.find_some
method within the oracle_adapter, besides using an alias_method_chain?