mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Start with a Rails app with authentication via Persona, Foundation CSS
This commit is contained in:
parent
9ac52066b4
commit
7cd9f207f5
72 changed files with 2586 additions and 0 deletions
0
app/models/.keep
Normal file
0
app/models/.keep
Normal file
0
app/models/concerns/.keep
Normal file
0
app/models/concerns/.keep
Normal file
5
app/models/user.rb
Normal file
5
app/models/user.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class User < ActiveRecord::Base
|
||||
def self.find_or_create_from_auth_hash(hash)
|
||||
User.find_or_create_by(email: hash['info']['email'])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue