forked from External/greenlight
GRN2-180: First stages of refactoring code for v2.4 (#748)
* Email rescues and authenticator concern * Application controller and helper clean up * Moved controller code out of helpers * More helper and email clean up * Cleaned up remaining helpers and create omniauth_options * Controller code clean up * restructured views structure * Restructured role code * Restructured profile and code clean up * Master merge * Added bbb server concern to deal with bbb calls * Bug fixes and changes after changes * rspec * More rubocop fixes
This commit is contained in:
@ -23,23 +23,23 @@ class RecordingsController < ApplicationController
|
||||
META_LISTED = "gl-listed"
|
||||
|
||||
# POST /:meetingID/:record_id
|
||||
def update_recording
|
||||
def update
|
||||
meta = {
|
||||
"meta_#{META_LISTED}" => (params[:state] == "public"),
|
||||
}
|
||||
|
||||
res = @room.update_recording(params[:record_id], meta)
|
||||
res = update_recording(params[:record_id], meta)
|
||||
|
||||
# Redirects to the page that made the initial request
|
||||
redirect_to request.referrer if res[:updated]
|
||||
redirect_back fallback_location: root_path if res[:updated]
|
||||
end
|
||||
|
||||
# DELETE /:meetingID/:record_id
|
||||
def delete_recording
|
||||
@room.delete_recording(params[:record_id])
|
||||
def delete
|
||||
delete_recording(params[:record_id])
|
||||
|
||||
# Redirects to the page that made the initial request
|
||||
redirect_to request.referrer
|
||||
redirect_back fallback_location: root_path
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user