From: Toshi MARUYAMA Date: Fri, 6 Nov 2020 13:00:44 +0000 (+0000) Subject: use "do end" instead of {} at ActivitiesController X-Git-Tag: 4.2.0~540 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=54281df1325d352b53c308681174aa20d72dfd0c;p=redmine.git use "do end" instead of {} at ActivitiesController git-svn-id: http://svn.redmine.org/redmine/trunk@20277 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb index 76bce9875..745a40219 100644 --- a/app/controllers/activities_controller.rb +++ b/app/controllers/activities_controller.rb @@ -59,11 +59,11 @@ class ActivitiesController < ApplicationController if events.empty? || stale?(:etag => [@activity.scope, @date_to, @date_from, @with_subprojects, @author, events.first, events.size, User.current, current_language]) respond_to do |format| - format.html { + format.html do @events_by_day = events.group_by {|event| User.current.time_to_date(event.event_datetime)} render :layout => false if request.xhr? - } - format.atom { + end + format.atom do title = l(:label_activity) if @author title = @author.name @@ -71,7 +71,7 @@ class ActivitiesController < ApplicationController title = l("label_#{@activity.scope.first.singularize}_plural") end render_feed(events, :title => "#{@project || Setting.app_title}: #{title}") - } + end end end