Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't load any non-ruby files

  • Loading branch information...
commit ee36b2b04aacb58450b563635303c7f4d5cb1fa1 1 parent cb1584c
@bryanp bryanp authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 pakyow-core/lib/core/loader.rb
View
4 pakyow-core/lib/core/loader.rb
@@ -16,9 +16,7 @@ def require_recursively(dir)
if File.exists?(dir)
DirUtils.walk_dir(dir) do |path|
next if FileTest.directory?(path)
-
- split = path.split('/')
- next if split[split.length-1].start_with?('.')
+ next if path.split('.')[-1] != 'rb'
if Configuration::Base.app.auto_reload
if !@times[path] || (@times[path] && File.mtime(path) - @times[path] > 0)
Please sign in to comment.
Something went wrong with that request. Please try again.