method
attribute_present?
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods
attribute_present?(attribute)public
Returns true if the specified attribute has been set by the user or by a database load and is neither nil nor empty? (the latter only applies to objects that respond to empty?, most notably Strings).