Sha256: 15fff9b48fd60cc4e7c537951b8647b00e3b7b3d8e28118b53ceeb57472880ef

Contents?: true

Size: 701 Bytes

Versions: 17

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  module Admin
    class EssenceVideosController < Alchemy::Admin::BaseController
      authorize_resource class: Alchemy::EssenceVideo
      before_action :load_essence

      def update
        @essence_video.update(essence_video_params)
      end

      private

      def load_essence
        @essence_video = EssenceVideo.find(params[:id])
      end

      def essence_video_params
        params.require(:essence_video).permit(
          :width,
          :height,
          :autoplay,
          :controls,
          :loop,
          :muted,
          :playsinline,
          :preload,
          :attachment_id
        )
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.9 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.8 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.7 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.6 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.5 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.0.14 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.4 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.0.13 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.3 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.2 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.1 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.1.0 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.0.12 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.0.11 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.0.10 app/controllers/alchemy/admin/essence_videos_controller.rb
alchemy_cms-6.0.9 app/controllers/alchemy/admin/essence_videos_controller.rb