summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-17 12:41:11 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-17 12:41:11 +0000
commit56dfe3c0703e8feda3d30d1d8331bdc7f555f131 (patch)
tree214fc57d33a48cc1da0a2b4c2cddf89718740129
parent7e3a61ef52a13e64580e38a0ca693c8e027da299 (diff)
downloadredmine-56dfe3c0703e8feda3d30d1d8331bdc7f555f131.tar.gz
redmine-56dfe3c0703e8feda3d30d1d8331bdc7f555f131.zip
remove spaces inside {} of app/models/project_query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20408 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/project_query.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/project_query.rb b/app/models/project_query.rb
index b8c79072f..19c13a524 100644
--- a/app/models/project_query.rb
+++ b/app/models/project_query.rb
@@ -39,23 +39,23 @@ class ProjectQuery < Query
def initialize(attributes=nil, *args)
super attributes
- self.filters ||= { 'status' => {:operator => "=", :values => ['1']} }
+ self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
end
def initialize_available_filters
add_available_filter(
"status",
- :type => :list, :values => lambda { project_statuses_values }
+ :type => :list, :values => lambda {project_statuses_values}
)
add_available_filter(
"id",
- :type => :list, :values => lambda { project_values }, :label => :field_project
+ :type => :list, :values => lambda {project_values}, :label => :field_project
)
add_available_filter "name", :type => :text
add_available_filter "description", :type => :text
add_available_filter(
"parent_id",
- :type => :list_subprojects, :values => lambda { project_values }, :label => :field_parent
+ :type => :list_subprojects, :values => lambda {project_values}, :label => :field_parent
)
add_available_filter(
"is_public",
@@ -70,7 +70,7 @@ class ProjectQuery < Query
return @available_columns if @available_columns
@available_columns = self.class.available_columns.dup
@available_columns += project_custom_fields.visible.
- map {|cf| QueryCustomFieldColumn.new(cf) }
+ map {|cf| QueryCustomFieldColumn.new(cf)}
@available_columns
end