Frequently I lose some time trying to figure out why my tests are failing when I use joins in ActiveRecord#find.
The logic seems fine, but the tests still fail. Than I remember that I should convert the integer properties from columns of other join tables from string to integer: assert Model.find(:first, :select => 'models.*, other_table.integer_column', :joins => 'left join other_table on other_table.model_id=models.id').integer_column*.to_i* == 1 What are the reasons that the column types are not the expected ones? Would it be complicated to implement or would it lose performance or just no one cared about this yet? Thanks in advance, Rodrigo. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---