例えば User モデルを使用している場合、以下のように active_for_authentication? メソッドをオーバーライドする
app/models/user.rb
def active_for_authentication?
super && status_enable?
end
あと、メッセージを変更したい場合は以下のように inactive_message メソッドをオーバーライドする
app/models/user.rb
def inactive_message
status_enable? ? super : :status_disabled
end
メッセージの文言は config/locale/devise.ja.yml に登録する(上記シンボルの部分に直接メッセージを書いても良い)