Start with a Rails app with authentication via Persona, Foundation CSS

This commit is contained in:
Andreas Haller 2014-11-19 17:07:05 +01:00
parent 9ac52066b4
commit 7cd9f207f5
72 changed files with 2586 additions and 0 deletions

0
app/models/.keep Normal file
View file

View file

5
app/models/user.rb Normal file
View 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