]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of GroupsHelper
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 11 Oct 2020 12:57:08 +0000 (12:57 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 11 Oct 2020 12:57:08 +0000 (12:57 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20138 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/groups_helper.rb

index e54665aeb03a3f2825311ef344b082617d9fbc47..246bd5821daeb2aa39d76403429c9899c403f650 100644 (file)
@@ -36,9 +36,18 @@ module GroupsHelper
       content_tag('div', principals_check_box_tags('user_ids[]', principals), :id => 'principals'),
       :class => 'objects-selection'
     )
-    links = pagination_links_full(principal_pages, principal_count, :per_page_links => false) {|text, parameters, options|
-      link_to text, autocomplete_for_user_group_path(group, parameters.merge(:q => params[:q], :format => 'js')), :remote => true
-    }
+    links =
+      pagination_links_full(principal_pages, principal_count,
+                            :per_page_links => false) do |text, parameters, options|
+        link_to(
+          text,
+          autocomplete_for_user_group_path(
+            group,
+            parameters.merge(:q => params[:q], :format => 'js')
+          ),
+          :remote => true
+        )
+      end
     s + content_tag('span', links, :class => 'pagination')
   end
 end