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