Sha256: 163bfba7a24808d2f16773f54728da7ae70485159edd27ab2f2fb9ac5eb56c55

Contents?: true

Size: 601 Bytes

Versions: 21

Compression:

Stored size: 601 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,
						:id => @content.id,
						:options => options
					}
				end
			end

		end
	end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.11 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.9.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.9 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.8.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.8 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.7 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.6 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.5 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.rc6 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.rc5 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.rc4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.rc3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.rc2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-2.1.beta6 app/helpers/alchemy/admin/pictures_helper.rb