Skip to content

Instantly share code, notes, and snippets.

@jnwheeler44
Created April 18, 2013 20:28
Show Gist options
  • Save jnwheeler44/5415949 to your computer and use it in GitHub Desktop.
Save jnwheeler44/5415949 to your computer and use it in GitHub Desktop.
class Thing < ActiveRecord::Base
def user_name
user.name if user.present?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment