This repository has been archived on 2023-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
|
class Profile < ApplicationRecord
|
|
has_many :posts
|
|
|
|
def full_name
|
|
[first_name, last_name].map(&:presence).compact.join ' '
|
|
end
|
|
end
|