Strip EXIF data as user preference

This commit is contained in:
Marcelo Briones
2014-12-31 01:08:50 -03:00
parent 431e2e3da9
commit 63eca447d0
14 changed files with 94 additions and 20 deletions

View File

@@ -52,6 +52,12 @@ class UsersController < ApplicationController
else
flash[:notice] = I18n.t 'users.update.settings_not_updated'
end
elsif u[:strip_exif]
if @user.update_attributes(u)
flash[:notice] = I18n.t 'users.update.settings_updated'
else
flash[:notice] = I18n.t 'users.update.settings_not_updated'
end
elsif u[:language]
if @user.update_attributes(u)
I18n.locale = @user.language
@@ -182,6 +188,7 @@ class UsersController < ApplicationController
:invitation_service,
:invitation_identifier,
:show_community_spotlight_in_stream,
:strip_exif,
:auto_follow_back,
:auto_follow_back_aspect_id,
:remember_me,