Files
adamantium/slices/micropub/repos/podcast_repo.rb

16 lines
248 B
Ruby

module Micropub
module Repos
class PodcastRepo < Adamantium::DB::Repo[:podcasts]
commands :create
def listing
podcasts.order(:name).to_a
end
def delete_all
podcasts.delete
end
end
end
end