Restores commits reverted when rails-4.1 branch was merged (#18174).

Patch by Mischa The Evil.

git-svn-id: http://svn.redmine.org/redmine/trunk@13504 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-10-24 18:41:35 +00:00
parent b63123ac1e
commit 67c4936908
13 changed files with 73 additions and 21 deletions

View File

@@ -178,6 +178,14 @@ module ObjectHelpers
changeset.save!
changeset
end
def Query.generate!(attributes={})
query = new(attributes)
query.name = "Generated query" if query.name.blank?
query.user ||= User.find(1)
query.save!
query
end
end
module IssueObjectHelpers