Rubocop fixes and increase per method complexity limit from 23 to 25
This commit is contained in:
parent
7cbd83bf01
commit
e30813bbb1
3 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue