Sha256: 9c56753ca4a01dd97144c8ab3ede77a149908e5d2df0feb22ed34e557f55911e
Contents?: true
Size: 686 Bytes
Versions: 11
Compression:
Stored size: 686 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 = options_from_params end end end end
Version data entries
11 entries across 11 versions & 1 rubygems