Add podcasts and map view
This commit is contained in:
15
app/repos/podcast_repo.rb
Normal file
15
app/repos/podcast_repo.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
@@ -118,7 +118,8 @@ module Adamantium
|
||||
|
||||
def places_listing(limit: nil)
|
||||
posts
|
||||
.where(post_type: "checkin")
|
||||
.where(post_type: ["checkin", "post"])
|
||||
.exclude(location: nil)
|
||||
.published
|
||||
.combine(:tags)
|
||||
.order(Sequel.desc(:published_at))
|
||||
|
Reference in New Issue
Block a user