mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-12-31 00:02:44 -05:00
Merge pull request #43 from whistlerbrk/master
Silence already initialized constant warnings for apps/environments with...
This commit is contained in:
commit
eb2ee31cd2
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user