summaryrefslogtreecommitdiffstats
path: root/app/models/query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-11 17:41:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-11 17:41:46 +0000
commit9fb339c4e21b65a01e98032b1d5f349428934b17 (patch)
tree019b184177ec9b2dcf6364dc9dde2ecbb45b8065 /app/models/query.rb
parent1b9ca7219bf1906b134aae11d650d9698ea79cb6 (diff)
downloadredmine-9fb339c4e21b65a01e98032b1d5f349428934b17.tar.gz
redmine-9fb339c4e21b65a01e98032b1d5f349428934b17.zip
Makes QueriesController able to handle other Query subclasses.
git-svn-id: http://svn.redmine.org/redmine/trunk@15635 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r--app/models/query.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 8fab46669..33962e319 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -144,6 +144,8 @@ class Query < ActiveRecord::Base
class StatementInvalid < ::ActiveRecord::StatementInvalid
end
+ include Redmine::SubclassFactory
+
VISIBILITY_PRIVATE = 0
VISIBILITY_ROLES = 1
VISIBILITY_PUBLIC = 2