Skip to content

Instantly share code, notes, and snippets.

@leepfrog
Created January 11, 2010 01:49
Show Gist options
  • Save leepfrog/273920 to your computer and use it in GitHub Desktop.
Save leepfrog/273920 to your computer and use it in GitHub Desktop.
def model
default_message_if_blank(read_attribute(:model))
end
def default_message_if_blank(args)
if ["",nil].include? args
"None"
else
args
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment