fix travis

This commit is contained in:
mlorb 2018-04-06 17:16:04 +02:00
parent 0c851f227c
commit 80fe1dd73b

View file

@ -4,7 +4,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
only: %i(new create new_with_provider create_with_provider)
before_action :sign_up_with_provider_enabled?,
only: %i(new_with_provider create_with_provider)
layout 'fluid'
layout :layout
def avatar
user = User.find_by_id(params[:id]) || current_user
@ -292,6 +292,10 @@ class Users::RegistrationsController < Devise::RegistrationsController
private
def layout
'fluid' if action_name == 'edit'
end
def check_captcha
if Rails.configuration.x.enable_recaptcha
unless verify_recaptcha