Skip to content

Instantly share code, notes, and snippets.

@michaelwehrley
Created August 6, 2015 19:11
Show Gist options
  • Save michaelwehrley/a4538a37430166ee2b6e to your computer and use it in GitHub Desktop.
Save michaelwehrley/a4538a37430166ee2b6e to your computer and use it in GitHub Desktop.
class Namerizer
def initialize(participant)
@first_name = participant.first_name
@last_name = participant.last_name
end
def name
@first_name + @last_name
end
end
class User < ActiveRecord::Base
def name
first_name + last_name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment