Commit 8df1b131 authored by James Lopez's avatar James Lopez
Browse files

use find instead of reject in avatar export file

parent e39134bb79a0
......@@ -19,7 +19,7 @@ def restore
private
def avatar_export_file
@avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].reject { |f| File.directory?(f) }.first
@avatar_export_file ||= Dir["#{avatar_export_path}/**/*"].find { |f| File.file?(f) }
end
def avatar_export_path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment