Skip to content

Commit

Permalink
Allow to set preview_sources
Browse files Browse the repository at this point in the history
Before you could only add additional sources,
but you maybe want to override the one default source.
  • Loading branch information
tvdeyen committed Jan 6, 2023
1 parent e9f0ef9 commit 052f83c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/alchemy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def self.preview_sources
@_preview_sources ||= Set.new << Alchemy::Admin::PreviewUrl
end

def self.preview_sources=(sources)
@_preview_sources = Array(sources)
end

# Define page publish targets
#
# A publish target is a ActiveJob that gets performed
Expand Down

0 comments on commit 052f83c

Please sign in to comment.