Skip to content
Browse files

Handle single-image pages on Ruby 1.9.2.

  • Loading branch information...
1 parent a770422 commit d2f99723e3c906b1db4258bca868d0eba153a2de @jcoglan committed Sep 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/birdie/page.rb
View
2 lib/birdie/page.rb
@@ -12,7 +12,7 @@ def initialize(book, config, position)
end
def images
- @images ||= @config['images'].map { |img| Image.new(File.join(@book.directory, img)) }
+ @images ||= [*@config['images']].map { |img| Image.new(File.join(@book.directory, img)) }
end
def path

0 comments on commit d2f9972

Please sign in to comment.
Something went wrong with that request. Please try again.