Fix unittests

This commit is contained in:
redfast00 2019-08-19 13:19:14 +02:00
parent a827014293
commit f870fefda5
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C
2 changed files with 2 additions and 1 deletions

View file

@ -36,7 +36,7 @@ class User < ActiveRecord::Base
def self.from_omniauth(auth)
where(name: auth.uid).first_or_create do |user|
user.name = auth.uid
user.avatar = Identicon.data_url_for auth.uid
user.avatar = Paperclip.io_adapters.for(Identicon.data_url_for auth.uid)
user.generate_key!
end
end

View file

@ -0,0 +1 @@
Paperclip::DataUriAdapter.register