Sha256: cef797be566a19db402b9ea4f7bd6adf02b34924fea873b887afe9c8e218e12a
Contents?: true
Size: 678 Bytes
Versions: 27
Compression:
Stored size: 678 Bytes
Contents
module Alchemy::Custom::Model::ElFinder module Paths class Images < Base def children(with_directory = true) ::Alchemy::Picture.all.collect {|p| build_file_path(p) } end ## # Costruisce il singolo file, passandogli l'active record di alchemy (Picture o Attachment) # # @param [Alchemy::Picture | Alchemy::Attachment] p def build_file_path(p) base_class = Paths::Image Rails.logger.debug {"#{@root}-#{self.path}"} image = base_class.new(@root, "#{self.path}/#{base_class.file_to_uri(p)}") image.active_record_instance = p image end end end end
Version data entries
27 entries across 27 versions & 1 rubygems