Remove default enabling of gravatar, check on initial confirmation of e-mail address and on any changes afterward if

a gravatar exists and enable then if the user hasn't uploaded a picture.
This commit is contained in:
Simon Poole 2015-08-18 22:45:16 +02:00 committed by Simon Poole
parent 224252fd83
commit 05cd781b25
4 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class SetDefaultGravatarToFalseForPrivacy < ActiveRecord::Migration
def up
change_column :users, :image_use_gravatar, :boolean, :default => false
end
def down
change_column :users, :image_use_gravatar, :boolean, :default => true
end
end