Skip to content

Instantly share code, notes, and snippets.

@lbergen
Created June 26, 2012 16:16
Show Gist options
  • Save lbergen/2996799 to your computer and use it in GitHub Desktop.
Save lbergen/2996799 to your computer and use it in GitHub Desktop.
def check_for_blanks
defaults = ApiKey.new
self.attributes.each do |k, v|
self[k] == defaults[k] if v.blank?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment