# File lib/active_record/base.rb, line 1708 def attribute_present?(attribute) value = read_attribute(attribute) !value.blank? or value == 0 end