Files
adamantium/slices/admin/repos/login_tokens_repo.rb

16 lines
276 B
Ruby

module Admin
module Repos
class LoginTokensRepo < Adamantium::DB::Repo[:login_tokens]
commands :create
def by_token(token:)
login_tokens.where(token: token).one
end
def delete_all
login_tokens.delete
end
end
end
end