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.
2021-03-10 09:27:11 +00:00
|
|
|
class Profile < ApplicationRecord
|
2021-03-10 09:31:29 +00:00
|
|
|
has_many :posts
|
2021-03-10 09:40:17 +00:00
|
|
|
|
|
|
|
def full_name
|
|
|
|
[first_name, last_name].map(&:presence).compact.join ' '
|
|
|
|
end
|
2021-03-10 09:27:11 +00:00
|
|
|
end
|