16 lines
272 B
Ruby
16 lines
272 B
Ruby
module Admin
|
|
module Repos
|
|
class LoginTokensRepo < Adamantium::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
|