Sha256: 4b54d66e9ac3aaaee6b0a0e719b25b279656a9cbbf6769070ca68cc70d233d9b
Contents?: true
Size: 689 Bytes
Versions: 6
Compression:
Stored size: 689 Bytes
Contents
module Alchemy module Admin class EssenceFilesController < Alchemy::Admin::BaseController helper "Alchemy::Admin::Contents" def edit @content = Content.find(params[:id]) @essence_file = @content.essence render layout: !request.xhr? end def update @essence_file = EssenceFile.find(params[:id]) @essence_file.update_attributes(params[:essence_file]) end def assign @content = Content.find_by_id(params[:id]) @attachment = Attachment.find_by_id(params[:attachment_id]) @content.essence.attachment = @attachment @options = params[:options] || {} end end end end
Version data entries
6 entries across 6 versions & 1 rubygems