EBWiki/EBWiki

View on GitHub
app/controllers/maps_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
83%
# frozen_string_literal: true

# Handle map related actions
class MapsController < ApplicationController
  include MapsHelper
  before_action :authenticate_user!, except: %i[index show history followers]

  def index
    @cases = fetch_cases
  end

  def after_sign_up_path_for(resource)
    stored_location_for(resource) || super
  end

  def after_sign_in_path_for(resource)
    stored_location_for(resource) || super
  end
end