Skip to content

Commit

Permalink
simplifies yet another regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Aug 25, 2012
1 parent 4fbd350 commit dfb5898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/dependencies.rb
Expand Up @@ -375,7 +375,7 @@ def qualified_const_defined?(path)
# Given +path+, a filesystem path to a ruby file, return an array of constant
# paths which would cause Dependencies to attempt to load this file.
def loadable_constants_for_path(path, bases = autoload_paths)
path = $1 if path =~ /\A(.*)\.rb\Z/
path = $` if path =~ /\.rb\z/
expanded_path = File.expand_path(path)
paths = []

Expand Down

0 comments on commit dfb5898

Please sign in to comment.