mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
7 lines
177 B
Ruby
7 lines
177 B
Ruby
# frozen_string_literal: true
|
|
|
|
class User < ActiveRecord::Base
|
|
def self.find_or_create_from_auth_hash(hash)
|
|
User.find_or_create_by(email: hash['info']['email'])
|
|
end
|
|
end
|