lib/hanami/assets/asset.rb in hanami-0.8.0 vs lib/hanami/assets/asset.rb in hanami-0.9.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'hanami/utils/file_list' + module Hanami module Assets # Requested asset # # @since 0.8.0 @@ -58,10 +60,10 @@ private # @since 0.8.0 # @api private def find_asset - Dir[PUBLIC_DIRECTORY].find do |asset| + Utils::FileList[PUBLIC_DIRECTORY].find do |asset| yield asset unless ::File.directory?(asset) end end end end