Refactor app in to its own slice
This commit is contained in:
9
slices/main/repos/podcast_repo.rb
Normal file
9
slices/main/repos/podcast_repo.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module Main
|
||||
module Repos
|
||||
class PodcastRepo < Adamantium::Repo[:podcasts]
|
||||
def listing
|
||||
podcasts.order(:name).to_a
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user