Sha256: e92c833c6808d6e551de57a347a476917d7b5b7d3b27eadb2d964af3904a17f9

Contents?: true

Size: 663 Bytes

Versions: 9

Compression:

Stored size: 663 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
				# @content.essence.save
				# @content.save
				@options = params[:options]
			end

		end
	end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.1.3 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.rc6 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.rc5 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.rc4 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.rc3 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.rc2 app/controllers/alchemy/admin/essence_files_controller.rb