Clean up main app repos

This commit is contained in:
2023-11-18 08:38:29 +11:00
parent cfbab5ab4b
commit e1a230bdba
7 changed files with 14 additions and 25 deletions

View File

@@ -1,8 +1,6 @@
module Adamantium
module Repos
class MovieRepo < Adamantium::Repo[:movies]
commands :create
def listing
movies.order(Sequel.lit("year desc")).to_a
end

View File

@@ -1,15 +1,9 @@
module Adamantium
module Repos
class PodcastRepo < Adamantium::Repo[:podcasts]
commands :create
def listing
podcasts.order(:name).to_a
end
def delete_all
podcasts.delete
end
end
end
end

View File

@@ -1,7 +0,0 @@
module Adamantium
module Repos
class WebmentionsRepo < Adamantium::Repo[:webmentions]
commands :create
end
end
end

View File

@@ -1,8 +1,6 @@
module Adamantium
module Repos
class WorkoutRepo < Adamantium::Repo[:workouts]
commands :create, update: :by_pk
def list
workouts.order(:published_at).to_a
end