このコミットが含まれているのは:
2026-05-04 15:36:13 +09:00
コミット 7ab877d6bd
3個のファイルの変更22行の追加5行の削除
+2 -1
ファイルの表示
@@ -5,5 +5,6 @@ class IpAddress < ApplicationRecord
has_many :users, through: :user_ips
def banned? = banned_at.present?
def ban! = update!(banned_at: Time.current)
def ban! = banned? or update!(banned_at: Time.current)
def unban! = update!(banned_at: nil)
end
+2 -1
ファイルの表示
@@ -22,5 +22,6 @@ class User < ApplicationRecord
def gte_member? = member? || admin?
def banned? = banned_at.present?
def ban! = update!(banned_at: Time.current)
def ban! = banned? or update!(banned_at: Time.current)
def unban! = update!(banned_at: nil)
end