class ActiveRecord::Associations::Builder::HasOne
def valid_options
def valid_options valid = super + [:as, :foreign_type] valid += [:through, :source, :source_type] if options[:through] valid end
def valid_options valid = super + [:as, :foreign_type] valid += [:through, :source, :source_type] if options[:through] valid end