Sha256: f8037746cfd62581d2b12bf75f0fb5307a1ac3a23d07b4b7e9cef34c295c1304
Contents?: true
Size: 674 Bytes
Versions: 39
Compression:
Stored size: 674 Bytes
Contents
# frozen_string_literal: true module Alchemy module Admin class EssenceFilesController < Alchemy::Admin::BaseController authorize_resource class: Alchemy::EssenceFile before_action :load_essence_file, only: [:edit, :update] helper "Alchemy::Admin::Contents" def edit @content = @essence_file.content end def update @essence_file.update(essence_file_params) end private def essence_file_params params.require(:essence_file).permit(:title, :css_class, :link_text) end def load_essence_file @essence_file = EssenceFile.find(params[:id]) end end end end
Version data entries
39 entries across 39 versions & 1 rubygems