lib/lita/user.rb in lita-3.3.1 vs lib/lita/user.rb in lita-4.0.0.rc1

- old
+ new

@@ -21,15 +21,9 @@ user = new(id, metadata) user.save user end - # @deprecated Use {.create} instead. - def find(id, metadata = {}) - Lita.logger.warn I18n.t("lita.user.find_deprecated") - create(id, metadata) - end - # Finds a user by ID. # @param id [Integer, String] The user's unique ID. # @return [Lita::User, nil] The user or +nil+ if no such user is known. def find_by_id(id) metadata = redis.hgetall("id:#{id}")