Class: Forem::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/forem/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_forem_userObject



2
3
4
5
6
7
8
# File 'app/controllers/forem/application_controller.rb', line 2

def authenticate_forem_user
  if !current_user
    session[:return_to] = request.fullpath
    flash[:error] = t("forem.errors.not_signed_in")
    redirect_to "/sign_in" #TODO: Change to routing helper for flexibility
  end
end

#current_userObject

dummy method



11
12
# File 'app/controllers/forem/application_controller.rb', line 11

def current_user
end