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