Class: Forem::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Forem::ApplicationController
- Defined in:
- app/controllers/forem/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
- #authenticate_forem_user ⇒ Object
-
#current_user ⇒ Object
dummy method.
Instance Method Details
#authenticate_forem_user ⇒ Object
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_user ⇒ Object
dummy method
11 12 |
# File 'app/controllers/forem/application_controller.rb', line 11 def current_user end |