jam-cloud/web/app/controllers/spikes_controller.rb

41 lines
986 B
Ruby
Raw Normal View History

###############################################################
### A spike is something that you build to prove something. ###
### It's not meant to be used in the actual product. ###
###############################################################
class SpikesController < ApplicationController
2014-05-19 21:57:08 +00:00
include ClientHelper
def facebook_invite
end
2014-01-25 20:03:14 +00:00
def listen_in
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
2014-05-06 13:34:38 +00:00
@music_sessions = ActiveMusicSession.index(current_user, as_musician: false)
2014-01-25 20:03:14 +00:00
render :layout => 'web'
end
2014-02-06 05:45:48 +00:00
2014-03-28 04:00:57 +00:00
def launch_app
render :layout => 'web'
end
2014-05-19 21:57:08 +00:00
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
2013-09-07 07:59:55 +00:00
end