mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Adds link to Object.blank? from Object.present?
This commit is contained in:
@@ -13,7 +13,7 @@ class Object
|
|||||||
respond_to?(:empty?) ? empty? : !self
|
respond_to?(:empty?) ? empty? : !self
|
||||||
end
|
end
|
||||||
|
|
||||||
# An object is present if it's not blank.
|
# An object is present if it's not #blank?.
|
||||||
def present?
|
def present?
|
||||||
!blank?
|
!blank?
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user