mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
`String#present?` is a method defined by Rails on the `String` class but this class is used before Rails has been loaded.
This commit is contained in:
parent
8e10878e1a
commit
37413c0ecd
|
@ -28,6 +28,6 @@ class GitUtils
|
||||||
default_value
|
default_value
|
||||||
end
|
end
|
||||||
|
|
||||||
(value.present? ? value : nil) || default_value
|
(!value.empty? ? value : nil) || default_value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user