Sha256: c6b210c78d77dece70b83e51eaf15a33f873f1732ef7648e65d5b0853318d5b7

Contents?: true

Size: 654 Bytes

Versions: 7

Compression:

Stored size: 654 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], :as => current_user.role.to_sym)
			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

7 entries across 7 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.11 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.9.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.9 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.8.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.8 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.1.7 app/controllers/alchemy/admin/essence_files_controller.rb