Sha256: 38314e5df05cc07f68349bd13c3a759f306b8d25e73f281c1928c09807d90f11
Contents?: true
Size: 283 Bytes
Versions: 2
Compression:
Stored size: 283 Bytes
Contents
module Forem class ApplicationController < ::ApplicationController private def authenticate_forem_user! if !current_user flash[:notice] = "You must be authenticated before you can do that." redirect_to main_app.sign_in_url end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
neifelheim-forem-0.0.2 | app/controllers/forem/application_controller.rb |
neifelheim-forem-0.0.1 | app/controllers/forem/application_controller.rb |