Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Feature detect based on Ruby version.

I didn't want to do this, FNM_EXTGLOB is defined on 2.1.x, but Dir.glob
returns the wrong value on Ruby less than 2.2.0.  Checking for a
case-insensitive FS seems too hard, so just check Ruby version  Checking
for a case-insensitive FS seems too hard, so just check Ruby version.
  • Loading branch information...
commit d7b9eeaad73ba4f77d8fb1c4538af9d92a921fd0 1 parent 656bc9a
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionview/lib/action_view/template/resolver.rb
View
2  actionview/lib/action_view/template/resolver.rb
@@ -196,7 +196,7 @@ def query(path, details, formats)
}
end
- if File.const_defined? :FNM_EXTGLOB
+ if RUBY_VERSION >= '2.2.0'
def find_template_paths(query)
Dir[query].reject { |filename|
File.directory?(filename) ||
Please sign in to comment.
Something went wrong with that request. Please try again.