Translations, design and content

This commit is contained in:
2017-03-31 14:42:37 +02:00
parent cfc1fbfd9f
commit c3bfeed620
28 changed files with 296 additions and 25 deletions
@@ -4,6 +4,7 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :set_locale
before_action :configure_permitted_parameters, if: :devise_controller?
INPUT_TIMEOUT = 2.seconds # We estimate that a user needs more then x seconds to enter some informations
@@ -27,4 +28,10 @@ class ApplicationController < ActionController::Base
def default_url_options(options = {})
options.merge locale: I18n.locale
end
protected
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:account_update, keys: [:first_name, :last_name, :street, :city, :zip, :support, :language, :age_category, :unsubscribed])
end
end