16 lines
246 B
Ruby
16 lines
246 B
Ruby
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
|