mirror of
https://github.com/sdsykes/fastimage.git
synced 2025-12-30 00:05:02 -05:00
Silence already initialized constant warnings for apps/environments with live reloads
This commit is contained in:
parent
82d3525f40
commit
d05ea84b5d
@ -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