Fix unittests
This commit is contained in:
parent
a827014293
commit
f870fefda5
2 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,7 @@ class User < ActiveRecord::Base
|
||||||
def self.from_omniauth(auth)
|
def self.from_omniauth(auth)
|
||||||
where(name: auth.uid).first_or_create do |user|
|
where(name: auth.uid).first_or_create do |user|
|
||||||
user.name = auth.uid
|
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!
|
user.generate_key!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
1
config/initializers/paperclip.rb
Normal file
1
config/initializers/paperclip.rb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Paperclip::DataUriAdapter.register
|
Loading…
Reference in a new issue