engines/adva_forum/app/controllers/topics_controller.rb
def previous
    topic = @topic.previous || @topic
    flash[:notice] = t(:'adva.topics.flash.no_previous_topic') if topic == @topic
    redirect_to topic_url(@section, topic.permalink)
  end
# TODO: can't we handle this in the frontend? seems like overkill to me ...
can't we handle this in the frontend. seems like overkill to me
can ' t we handle this in the frontend . seems like overkill to me
def previous
    topic = @topic.previous || @topic
    flash[:notice] = t(:'adva.topics.flash.no_previous_topic') if topic == @topic
    redirect_to topic_url(@section, topic.permalink)
  end
def previous topic = @topic . previous || @topic flash [ :notice ] = t ( :' adva.topics.flash.no_previous_topic ' ) if topic == @topic redirect_to topic_url ( @section , topic . permalink ) end
TODO: can't we handle this in the frontend?
TODO : can ' t we handle this in the frontend?