`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
|
||||
end
|
||||
|
||||
(value.present? ? value : nil) || default_value
|
||||
(!value.empty? ? value : nil) || default_value
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue