]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/helpers/members_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 05:24:46 +0000 (05:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 05:24:46 +0000 (05:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18986 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/members_helper.rb

index eef03218c0c1ff8a57040013a8191a9228f07728..9fa2ec37097085b512412cef5786ed2f5805bded 100644 (file)
@@ -29,10 +29,18 @@ module MembersHelper
       :class => 'objects-selection'
     )
 
-    links = pagination_links_full(principal_pages, principal_count, :per_page_links => false) {|text, parameters, options|
-      link_to text, autocomplete_project_memberships_path(project, parameters.merge(:q => params[:q], :format => 'js')), :remote => true
-    }
-
+    links =
+      pagination_links_full(principal_pages,
+                            principal_count,
+                            :per_page_links => false) {|text, parameters, options|
+        link_to(
+          text,
+          autocomplete_project_memberships_path(
+            project,
+            parameters.merge(:q => params[:q], :format => 'js')
+          ),
+          :remote => true)
+      }
     s + content_tag('span', links, :class => 'pagination')
   end