Sha256: 77cbf47d899bc1c85762bdd6843bedccc38e8ce0a7bae2117ede0a5a372ce0b0
Contents?: true
Size: 402 Bytes
Versions: 3
Compression:
Stored size: 402 Bytes
Contents
module Fiona7 class UploadPathSelector def initialize(obj) @obj = obj end def call # only publication type can contain children (code = "5") # for uploads on root object we should use the general container aswell if @obj.obj_type_code != "5" || @obj.id == 2001 "/_uploads/#{@obj.id}" else "#{@obj.path}/_uploads" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
infopark_fiona7-1.6.1.1.5 | lib/fiona7/upload_path_selector.rb |
infopark_fiona7-1.6.1.1.1 | lib/fiona7/upload_path_selector.rb |
infopark_fiona7-1.6.1.1.0 | lib/fiona7/upload_path_selector.rb |