Skip to content

Instantly share code, notes, and snippets.

@jagira
Created October 12, 2010 19:49
Show Gist options
  • Save jagira/622789 to your computer and use it in GitHub Desktop.
Save jagira/622789 to your computer and use it in GitHub Desktop.
def attribute_present?(attribute)
value = read_attribute(attribute)
!value.blank?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment