From 707278f0997d113daaa070f283dc5c5c6f95906d Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 12 Aug 2014 14:11:27 -0400 Subject: [PATCH] Use the proper extname getter. --- lib/jekyll/convertible.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/convertible.rb b/lib/jekyll/convertible.rb index 15112328..d513d737 100644 --- a/lib/jekyll/convertible.rb +++ b/lib/jekyll/convertible.rb @@ -150,14 +150,14 @@ module Jekyll # # Returns true if extname == .sass or .scss, false otherwise. def sass_file? - %w[.sass .scss].include?(extname) + %w[.sass .scss].include?(ext) end # Determine whether the document is a CoffeeScript file. # # Returns true if extname == .coffee, false otherwise. def coffeescript_file? - '.coffee'.eql?(extname) + '.coffee'.eql?(ext) end # Determine whether the file should be rendered with Liquid.