kissingcomputer/app/models/user.rb

11 lines
277 B
Ruby
Raw Normal View History

2026-01-10 16:17:07 +00:00
class User < ApplicationRecord
has_secure_password
has_many :sessions, dependent: :destroy
has_many :members
normalizes :email_address, with: ->(e) { e.strip.downcase }
end
def build_default_profile
create_profile # Creates an empty profile for the new user
end