rubocop fixes for rails and unnecessary private