jcraigk/kudochest

View on GitHub
app/controllers/dashboard_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class DashboardController < ApplicationController
  def show
    @shared_admin = shared_admin?
    return unless current_profile
    # TODO: This is a hack to fix kaminari anchor bug
    if params[:paged].present?
      return redirect_to dashboard_path(page: params[:page], anchor: :recent)
    end
    build_dashboard_for(current_profile)
  end
end