Merge pull request #43 from whistlerbrk/master

Silence already initialized constant warnings for apps/environments with...
This commit is contained in:
Stephen Sykes 2015-01-10 14:34:10 +02:00
commit eb2ee31cd2

View File

@ -63,9 +63,9 @@ class FastImage
class CannotParseImage < FastImageException # :nodoc:
end
DefaultTimeout = 2
DefaultTimeout = 2 unless const_defined?(:DefaultTimeout)
LocalFileChunkSize = 256
LocalFileChunkSize = 256 unless const_defined?(:LocalFileChunkSize)
# Returns an array containing the width and height of the image.
# It will return nil if the image could not be fetched, or if the image type was not recognised.