Remove FalseClass#to_i core extension.
Remove a monkey patch that added a `to_i` method to `FalseClass` so that `false.to_i` returned 0. This is legacy code that shouldn't still be in use anywhere. It doesn't really work anyway, because `true.to_i` isn't defined.
This commit is contained in:
@@ -62,9 +62,3 @@ end
|
|||||||
class String
|
class String
|
||||||
include Danbooru::Extensions::String
|
include Danbooru::Extensions::String
|
||||||
end
|
end
|
||||||
|
|
||||||
class FalseClass
|
|
||||||
def to_i
|
|
||||||
0
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|||||||
Reference in New Issue
Block a user