Skip to content

Commit

Permalink
Remove dependency on Weblog
Browse files Browse the repository at this point in the history
  • Loading branch information
cdchapman committed Feb 3, 2022
1 parent d03cb89 commit a3bb420
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/helpers/atom_feed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require 'uri'

require_relative 'weblog'
require_relative 'link_to'
require_relative 'dates'

Expand All @@ -12,7 +11,6 @@ module Helpers
module AtomFeed
include Dates
include LinkTo
include Weblog

class AtomFeedBuilder
include AtomFeed
Expand Down Expand Up @@ -215,7 +213,7 @@ def atom_feed(params = {})
# Fill builder
builder.id = params[:id]
builder.limit = params.fetch(:limit, 5)
builder.relevant_entries = params.fetch(:entries, weblog)
builder.relevant_entries = params.fetch(:entries, [])
builder.preserve_order = params.fetch(:preserve_order, false)
builder.content_proc = params.fetch(:content_proc, ->(a) { a.compiled_content(snapshot: :pre) })
builder.excerpt_proc = params.fetch(:excerpt_proc, ->(a) { a[:excerpt] })
Expand Down

0 comments on commit a3bb420

Please sign in to comment.