lujanfernaud/prevy

View on GitHub
app/controllers/static_pages_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class StaticPagesController < ApplicationController
  def create_group_unconfirmed
    redirect_to root_path unless signed_in?
  end

  def hidden_group
  end

  private

    # Store the referrer instead of the current path, so we are redirected
    # back to the group page.
    #
    # See ApplicationController for reference.
    def store_user_location
      store_location_for(:user, request.referrer)
    end
end