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.2.3.2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.3.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.3.0 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.3.rc5 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.2 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.1 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.0 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.rc15 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.rc14 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.rc13 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.rc11 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.rc8 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.rc7 app/controllers/alchemy/admin/essence_files_controller.rb
alchemy_cms-2.2.rc6 app/controllers/alchemy/admin/essence_files_controller.rb