28 lines
700 B
Ruby
28 lines
700 B
Ruby
###############################################################
|
|
### A spike is something that you build to prove something. ###
|
|
### It's not meant to be used in the actual product. ###
|
|
###############################################################
|
|
|
|
class SpikesController < ApplicationController
|
|
|
|
def facebook_invite
|
|
|
|
end
|
|
|
|
def listen_in
|
|
|
|
if !current_user.admin
|
|
raise PermissionError "must be administrator"
|
|
end
|
|
|
|
#as_musician = false is the critical search criteria for sessions to list correctly
|
|
@music_sessions = ActiveMusicSession.index(current_user, as_musician: false)
|
|
|
|
render :layout => 'web'
|
|
end
|
|
|
|
def launch_app
|
|
render :layout => 'web'
|
|
end
|
|
end
|