Class: Rostra::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Rostra::ApplicationController
show all
- Includes:
- Config
- Defined in:
- app/controllers/rostra/application_controller.rb
Instance Method Summary
collapse
Methods included from Config
setup
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
|
#main_app_signup_path ⇒ Object
22
23
24
|
# File 'app/controllers/rostra/application_controller.rb', line 22
def main_app_signup_path
send(:main_app).send(Rostra::Config.main_app_signup_path)
end
|
#rostra_user ⇒ Object
12
13
14
|
# File 'app/controllers/rostra/application_controller.rb', line 12
def rostra_user
send(Rostra::Config.rostra_user)
end
|