]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in app/models/project_query.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 09:18:17 +0000 (09:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 09:18:17 +0000 (09:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19000 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/project_query.rb

index 25ee7a86148e36d5d9e1f8a04c473d236adc94b1..49c8f5e99040a075839219c938e00ea2fc017163 100644 (file)
@@ -39,19 +39,25 @@ class ProjectQuery < Query
   end
 
   def initialize_available_filters
-    add_available_filter "status",
+    add_available_filter(
+      "status",
       :type => :list, :values => lambda { project_statuses_values }
-    add_available_filter("id",
+    )
+    add_available_filter(
+      "id",
       :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",
+    add_available_filter(
+      "parent_id",
       :type => :list_subprojects, :values => lambda { project_values }, :label => :field_parent
     )
-    add_available_filter "is_public",
+    add_available_filter(
+      "is_public",
       :type => :list,
       :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]]
+    )
     add_available_filter "created_on", :type => :date_past
     add_custom_fields_filters(project_custom_fields)
   end