def full_name
[first_name, last_name].join(' ')
end
def full_name=(name)
split = name.split(' ', 2)
self.first_name = split.first
self.last_name = split.last
end
Created
March 18, 2011 07:33
-
-
Save sandys/875737 to your computer and use it in GitHub Desktop.
random tidbits about rails
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment