class User < ApplicationRecord def as_json(options={}) options[:except] ||= [:ip] super(options) end end