Rails3 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8383 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b20598d755
commit
a03432cbe6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue