Class: Rostra::ApplicationController

Inherits:
ActionController::Base
  • Object
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

Returns:

  • (Boolean)


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_pathObject



18
19
20
# File 'app/controllers/rostra/application_controller.rb', line 18

def 
  send(:main_app).send(Rostra::Config.)
end

#main_app_signup_pathObject



22
23
24
# File 'app/controllers/rostra/application_controller.rb', line 22

def 
  send(:main_app).send(Rostra::Config.)
end

#rostra_userObject



12
13
14
# File 'app/controllers/rostra/application_controller.rb', line 12

def rostra_user
  send(Rostra::Config.rostra_user)
end