Use .empty? instead of == ''

This commit is contained in:
Parker Moore 2013-08-07 17:12:13 +02:00
parent a73b17d08c
commit ccedcd0eb9
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ module Jekyll
end
def should_generate_excerpt?
!(site.config['excerpt_separator'].to_s == "")
!(site.config['excerpt_separator'].to_s.empty?)
end
end
end