]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at ActivitiesController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Nov 2020 13:00:44 +0000 (13:00 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Nov 2020 13:00:44 +0000 (13:00 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20277 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/activities_controller.rb

index 76bce9875d4a458dbab9ba7a0f9198b690c19638..745a40219471682ab638d0f75a62d834aa0285e5 100644 (file)
@@ -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