Class method とすべきところが Instance method となっているのを修正
authorOHASHI, Norikazu <katz@neko-mori.sakura.ne.jp>
Wed, 24 Apr 2019 22:16:09 +0000 (07:16 +0900)
committerOHASHI, Norikazu <katz@neko-mori.sakura.ne.jp>
Wed, 24 Apr 2019 22:16:09 +0000 (07:16 +0900)
sinatra/app/models/users_db.rb

index 74749c7..d9c45fd 100644 (file)
@@ -192,7 +192,7 @@ class UserAccount
   end
 
   # ユーザ情報の削除
-  def deleteUser(id)
+  def self.deleteUser(id)
     user = User.find_by(id: id)
     if (user == nil)
       raise NotFoundInstanceError