Sha256: 444944a736be6482d90ba773a3d95a60a1a2a4267d61f8ac17ae67916e6359da

Contents?: true

Size: 621 Bytes

Versions: 3

Compression:

Stored size: 621 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 => false
			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

3 entries across 3 versions & 1 rubygems

Version Path
alchemy_cms-2.1.6 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.5 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.4 app/controllers/alchemy/admin/essence_files_controller.rb