diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-08-22 09:53:59 +0300 |
---|---|---|
committer | Tarmo Tänav <tarmo@itech.ee> | 2008-08-22 10:39:45 +0300 |
commit | 52ac9d04442296abe7f05fc4701e1be7a0eed1f8 (patch) | |
tree | b9a71efbe29f1cc2a993b8bfe5bbbf8f73ddd117 /activerecord/test/models | |
parent | d3b894563a114912113b816f07ed16511363fb65 (diff) | |
download | rails-52ac9d04442296abe7f05fc4701e1be7a0eed1f8.tar.gz rails-52ac9d04442296abe7f05fc4701e1be7a0eed1f8.tar.bz2 rails-52ac9d04442296abe7f05fc4701e1be7a0eed1f8.zip |
Fixed ordering in test_find_in_association_with_custom_finder_sql_and_multiple_interpolations
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/project.rb b/activerecord/test/models/project.rb index e1ab89eca5..44c692b5e7 100644 --- a/activerecord/test/models/project.rb +++ b/activerecord/test/models/project.rb @@ -7,7 +7,7 @@ class Project < ActiveRecord::Base has_and_belongs_to_many :developers_named_david, :class_name => "Developer", :conditions => "name = 'David'", :uniq => true has_and_belongs_to_many :developers_named_david_with_hash_conditions, :class_name => "Developer", :conditions => { :name => 'David' }, :uniq => true has_and_belongs_to_many :salaried_developers, :class_name => "Developer", :conditions => "salary > 0" - has_and_belongs_to_many :developers_with_finder_sql, :class_name => "Developer", :finder_sql => 'SELECT t.*, j.* FROM developers_projects j, developers t WHERE t.id = j.developer_id AND j.project_id = #{id}' + has_and_belongs_to_many :developers_with_finder_sql, :class_name => "Developer", :finder_sql => 'SELECT t.*, j.* FROM developers_projects j, developers t WHERE t.id = j.developer_id AND j.project_id = #{id} ORDER BY t.id' has_and_belongs_to_many :developers_by_sql, :class_name => "Developer", :delete_sql => "DELETE FROM developers_projects WHERE project_id = \#{id} AND developer_id = \#{record.id}" has_and_belongs_to_many :developers_with_callbacks, :class_name => "Developer", :before_add => Proc.new {|o, r| o.developers_log << "before_adding#{r.id || '<new>'}"}, :after_add => Proc.new {|o, r| o.developers_log << "after_adding#{r.id || '<new>'}"}, |