fixed linecache gem version.
fixed, changed arel.joins(arel) to arel.join_sql.
fixed, changed reorder('name') to except(:order).order('name').
fixed warning for test_except_and_order_overrides_default_scope_order.