Rubocop fixes and increase per method complexity limit from 23 to 25

This commit is contained in:
Simon Poole 2019-01-30 14:39:05 +01:00
parent 7cbd83bf01
commit e30813bbb1
3 changed files with 4 additions and 7 deletions

View file

@ -36,7 +36,7 @@ class UsersController < ApplicationController
def save
@title = t "users.new.title"
if params[:decline] || !params[:read_tou] || params[:read_tou] == 0
if params[:decline] || !params[:read_tou] || params[:read_tou] == "0"
if current_user
current_user.terms_seen = true