plots2
plots2 copied to clipboard
Redundant code in home controller
Redundant code in home controller when the user is logged in
def home
@activity, @blog, @notes, @wikis, @revisions, @comments, @answer_comments = Rails.cache.fetch("front-activity", expires_in: 30.minutes) do
self.activity
end
@title = I18n.t('home_controller.science_community')
if current_user
redirect_to '/dashboard'
else
Please show us where to look
home controller, home action
Fixed by PR #2327
@jywarren the PR for this issue has been merged. I think we can close it now.
oh yeah! great.