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

18 lines
279 B
Ruby

module Admin
module Repos
class UserRepo < Adamantium::Repo[:users]
commands :create
def exists(id)
!!users
.where(id: id)
.one
end
def by_email(email:)
users.where(email: email).one
end
end
end
end