Sha256: 3d8f9b1c3615edc7790ff025b6f28c60ccc6c65570e5ca9db7b7512beaffbaef

Contents?: true

Size: 684 Bytes

Versions: 34

Compression:

Stored size: 684 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

34 entries across 34 versions & 1 rubygems

Version Path
alchemy_cms-2.5.3.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.3 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.2.2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.2.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.0 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.0.rc3 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.0.b9 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.3.2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.4 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.4.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.0.b5 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.5.0.b2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.4.0 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.4.rc4 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.4.rc2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.4.rc1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.3.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.4.beta2 app/controllers/alchemy/admin/essence_files_controller.rb