Sha256: 92d753832bb1809ba63eb4de3aaf27e0cc8f6df03fcd2190df09f2427f1e327b
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
class Bigbluebutton::PlaybackTypesController < ApplicationController include BigbluebuttonRails::InternalControllerMethods respond_to :html before_filter :find_playback_type, only: [:update] def update respond_with @playback_type do |format| if @playback_type.update_attributes(playback_type_params) format.html { message = t('bigbluebutton_rails.playback_types.notice.update.success') redirect_to_using_params request.referer, :notice => message } else format.html { flash[:error] = @playback_type.errors.full_messages.join(", ") redirect_to_using_params request.referer } end end end protected def find_playback_type @playback_type ||= BigbluebuttonPlaybackType.find(params[:id]) end def playback_type_params unless params[:bigbluebutton_playback_type].nil? params[:bigbluebutton_playback_type].permit(*playback_type_allowed_params) else {} end end def playback_type_allowed_params [ :visible, :default ] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-3.0.0 | app/controllers/bigbluebutton/playback_types_controller.rb |
bigbluebutton_rails-2.3.0 | app/controllers/bigbluebutton/playback_types_controller.rb |