Sha256: 42c0961397af23998d5ca9e38d2ec92826760e6360c87a8f62927bb5b304178a
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module Ki module Middleware module Helpers module PublicFile def public_file_exists?(path) path = path.path if path.class == BaseRequest File.file?(public_file_path(path)) end def public_file_path(path) path = path.path if path.class == BaseRequest File.join(Ki::PUBLIC_PATH, path) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ki-0.4.12 | lib/ki/middleware/helpers/public_file_helper.rb |