Skip to content

Commit

Permalink
Copy fix to current_category
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Jun 9, 2020
1 parent 5d14a38 commit fad351b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/categories_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def current_category
@post.category
elsif defined?(@question) && !@question.category.nil?
@question.category
elsif defined?(@article) && !@article.category.nil?
@article.category
end
end
end

0 comments on commit fad351b

Please sign in to comment.