Clean up main app repos
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -1,7 +0,0 @@
|
||||
module Adamantium
|
||||
module Repos
|
||||
class WebmentionsRepo < Adamantium::Repo[:webmentions]
|
||||
commands :create
|
||||
end
|
||||
end
|
||||
end
|
@@ -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
|
||||
|
Reference in New Issue
Block a user