2014-02-22 07:46:41 +00:00
|
|
|
###############################################################
|
|
|
|
|
### A spike is something that you build to prove something. ###
|
|
|
|
|
### It's not meant to be used in the actual product. ###
|
|
|
|
|
###############################################################
|
|
|
|
|
|
2013-02-05 03:24:13 +00:00
|
|
|
class SpikesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
def facebook_invite
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
2014-01-25 20:03:14 +00:00
|
|
|
def listen_in
|
|
|
|
|
|
2014-02-27 18:38:02 +00:00
|
|
|
if !current_user.admin
|
|
|
|
|
raise PermissionError "must be administrator"
|
|
|
|
|
end
|
|
|
|
|
|
2014-01-25 20:03:14 +00:00
|
|
|
#as_musician = false is the critical search criteria for sessions to list correctly
|
|
|
|
|
@music_sessions = MusicSession.index(current_user, as_musician: false)
|
|
|
|
|
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
2014-02-06 05:45:48 +00:00
|
|
|
|
2013-09-07 07:59:55 +00:00
|
|
|
end
|