mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-23 16:13:14 +01:00
6 lines
146 B
Ruby
6 lines
146 B
Ruby
|
class User < ActiveRecord::Base
|
||
|
def self.find_or_create_from_auth_hash(hash)
|
||
|
User.find_or_create_by(email: hash['info']['email'])
|
||
|
end
|
||
|
end
|