Sha256: 7392e7f6bd752d405a80ec4076ba504234284bb120278b09f570ec06ff3f5221

Contents?: true

Size: 733 Bytes

Versions: 38

Compression:

Stored size: 733 Bytes

Contents

module Alchemy
  module Admin
    module PicturesHelper

      def create_or_assign_url(picture_to_assign, options)
        if @content.nil?
          {
            :controller => :contents,
            :action => :create,
            :picture_id => picture_to_assign.id,
            :content => {
              :essence_type => "Alchemy::EssencePicture",
              :element_id => @element.id
            },
            :options => options
          }
        else
          {
            :controller => :essence_pictures,
            :action => :assign,
            :picture_id => picture_to_assign.id,
            :content_id => @content.id,
            :options => options
          }
        end
      end

    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.3 app/helpers/alchemy/admin/pictures_helper.rb
lc_alchemy_cms-3.2.1 app/helpers/alchemy/admin/pictures_helper.rb
lc_alchemy_cms-3.2.0 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.2.0 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.2.0.rc1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.2.0.beta app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.9.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.0.4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.rc3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.rc2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.rc1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.beta6 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.beta5 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.beta4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.0.3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.beta3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-3.1.0.beta2 app/helpers/alchemy/admin/pictures_helper.rb