Rails 2.1 compatibility fix in UserPreference.
Authored by: jplang 2008-07-04
Parent: [r1620]
Child: [r1622]