]> source.dussan.org Git - redmine.git/commitdiff
Rails3 compatibility.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 26 Dec 2011 12:22:03 +0000 (12:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 26 Dec 2011 12:22:03 +0000 (12:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8383 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project.rb

index 0d2dfc29cf789a11e20110dc7928f0eff17059d0..29578df6ec1b703cf49332bbe2f6678a0ac2fb92 100644 (file)
@@ -810,7 +810,7 @@ class Project < ActiveRecord::Base
   # Copies queries from +project+
   def copy_queries(project)
     project.queries.each do |query|
-      new_query = Query.new
+      new_query = ::Query.new
       new_query.attributes = query.attributes.dup.except("id", "project_id", "sort_criteria")
       new_query.sort_criteria = query.sort_criteria if query.sort_criteria
       new_query.project = self