class SomeClass < ActiveRecord::Base belongs_to :user def self.serialize(attr_name, class_name = Object, exposed_fields = []) super(attr_name, class_name) ...