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