class Alchemy::Custom::Model::ElFinder::Paths::Files
Public Instance Methods
build_file_path(p)
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/files.rb, line 11 def build_file_path(p) base_class = Paths::File 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
children(with_directory = true)
click to toggle source
# File lib/alchemy/custom/model/el_finder/paths/files.rb, line 5 def children(with_directory = true) ::Alchemy::Attachment.all.collect {|p| build_file_path(p) } end