before_save :update_tile
after_save :spam_check
+ def to_param
+ display_name
+ end
+
def self.authenticate(options)
if options[:username] && options[:password]
user = find_by("email = ? OR display_name = ?", options[:username], options[:username])
end
def preferred_languages
- @locales ||= Locale.list(languages)
+ @preferred_languages ||= Locale.list(languages)
end
def nearby(radius = NEARBY_RADIUS, num = NEARBY_USERS)