plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Redundant code in home controller

Open seafr opened this issue 8 years ago • 3 comments

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


seafr avatar Feb 14 '18 19:02 seafr

Fixed by PR #2327

seafr avatar Feb 14 '18 19:02 seafr

@jywarren the PR for this issue has been merged. I think we can close it now.

seafr avatar Feb 17 '18 18:02 seafr

oh yeah! great.

jywarren avatar Feb 20 '18 19:02 jywarren