add preferences and customization (#171)

This commit is contained in:
Joshua Arts
2017-05-11 09:58:51 -04:00
committed by Jesus Federico
parent 45c55efd04
commit 24c8952e59
14 changed files with 160 additions and 10 deletions

View File

@ -17,6 +17,9 @@
class User < ApplicationRecord
before_create :set_encrypted_id
has_attached_file :background
validates_attachment :background,
:content_type => { :content_type => ["image/jpg", "image/jpeg", "image/gif", "image/png"] }
def self.from_omniauth(auth_hash)
user = find_or_initialize_by(uid: auth_hash['uid'], provider: auth_hash['provider'])