############################################################### ### A spike is something that you build to prove something. ### ### It's not meant to be used in the actual product. ### ############################################################### class SpikesController < ApplicationController include ClientHelper 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 def websocket render :layout => false end def subscription Notification.send_subscription_message('test', '1', '{"msg": "oh hai 1"}') Notification.send_subscription_message('test', '2', '{"msg": "oh hai 2"}') render text: 'oh hai' end def site_validate render :layout => 'web' end end