sessions and fixes

This commit is contained in:
Josh
2018-05-22 16:58:11 -04:00
parent f189c98c56
commit 434021239c
10 changed files with 98 additions and 27 deletions

View File

@ -4,13 +4,12 @@ class Meeting < ApplicationRecord
validates :name, presence: true
belongs_to :room
belongs_to :room, optional: true
RETURNCODE_SUCCESS = "SUCCESS"
# Creates a meeting on the BigBlueButton server.
def start_meeting(options = {})
puts bbb
create_options = {
record: options[:meeting_recorded].to_s,
logoutURL: options[:meeting_logout_url] || '',
@ -154,4 +153,4 @@ class Meeting < ApplicationRecord
o = ([('a'..'z'), ('A'..'Z')].map do |i| i.to_a end).flatten
((0...length).map do o[rand(o.length)] end).join
end
end
end