Permalink
Browse files

Providing the full file name including the extension causes a depreca…

…tion warning - remove the extension
  • Loading branch information...
1 parent eafa310 commit 6b9bf1fb23d1d943b0c47a6416f7290a9113b52c @mjankowski mjankowski committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/flutie/styleguides_controller.rb
@@ -15,7 +15,7 @@ def styleguides
all_styleguide_partials = ActionController::Base.view_paths.map do |view_path|
styleguide_path = File.join(view_path.to_s, 'styleguides')
if File.exists?(styleguide_path)
- Dir.glob(styleguide_path + '/_*.*')
+ Dir.glob(styleguide_path + '/_*.*').map { |file| file.chomp(File.extname(file)) }
else
nil
end

0 comments on commit 6b9bf1f

Please sign in to comment.