Files
adamantium/app/relations/webmentions.rb

20 lines
353 B
Ruby

# frozen_string_literal: true
module Adamantium
module Relations
class Webmentions < Adamantium::DB::Relation
schema :webmentions, infer: true do
associations do
belongs_to :post
end
end
auto_struct(true)
def published
where(self[:published_at] <= Time.now)
end
end
end
end