Class: Rostra::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Rostra::ApplicationController
- Includes:
- Config
- Defined in:
- app/controllers/rostra/application_controller.rb
Direct Known Subclasses
Base::AnswersController, Base::CommentsController, Base::QuestionsController
Instance Method Summary collapse
-
#can_participate_in_rostra? ⇒ Boolean
Check if a user is logged in.
- #main_app_login_path ⇒ Object
- #main_app_signup_path ⇒ Object
- #rostra_user ⇒ Object
Methods included from Config
Instance Method Details
#can_participate_in_rostra? ⇒ Boolean
Check if a user is logged in
28 29 30 |
# File 'app/controllers/rostra/application_controller.rb', line 28 def can_participate_in_rostra? rostra_user && rostra_user.can_participate_in_rostra? end |
#main_app_login_path ⇒ Object
18 19 20 |
# File 'app/controllers/rostra/application_controller.rb', line 18 def main_app_login_path send(:main_app).send(Rostra::Config.main_app_login_path) end |