Use new hanami db classes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module Adamantium
|
||||
module Repos
|
||||
class PageRepo < Adamantium::Repo[:pages]
|
||||
class PageRepo < Adamantium::DB::Repo[:pages]
|
||||
def fetch!(slug:)
|
||||
pages
|
||||
.published
|
||||
|
@@ -1,6 +1,6 @@
|
||||
module Adamantium
|
||||
module Repos
|
||||
class PodcastScrobbleRepo < Adamantium::Repo[:podcast_scrobbles]
|
||||
class PodcastScrobbleRepo < Adamantium::DB::Repo[:podcast_scrobbles]
|
||||
commands :create
|
||||
|
||||
def exists?(id:)
|
||||
|
@@ -2,7 +2,7 @@ require "time_math"
|
||||
|
||||
module Adamantium
|
||||
module Repos
|
||||
class PostRepo < Adamantium::Repo[:posts]
|
||||
class PostRepo < Adamantium::DB::Repo[:posts]
|
||||
def recent(limit:)
|
||||
date = Time.now
|
||||
|
||||
|
Reference in New Issue
Block a user