File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ def for_omniauth(auth)
51
51
backup_email : auth [ :info ] [ :email ] ,
52
52
location : location_from ( auth ) )
53
53
#FIXME VCR raise an error when we try to download the image
54
- user . avatar . download! avatar_url_for ( auth ) unless Rails . env . test?
54
+ avatar_url = avatar_url_for ( auth )
55
+ user . avatar . download! avatar_url if avatar_url . present? && !Rails . env . test?
55
56
user . apply_oauth ( auth )
56
57
user . username = auth [ :info ] [ :nickname ]
57
58
end
Original file line number Diff line number Diff line change 5
5
6
6
config . action_controller . perform_caching = false
7
7
config . action_dispatch . best_standards_support = :builtin
8
- config . action_mailer . delivery_method = :letter_opener
9
8
config . action_mailer . raise_delivery_errors = false
10
9
config . active_support . deprecation = :log
11
10
config . assets . compile = true
You can’t perform that action at this time.
0 commit comments