Skip to content

Commit

Permalink
Merge pull request #2407 from tvdeyen/allow-to-set-preview-sources
Browse files Browse the repository at this point in the history
Allow to set preview_sources
  • Loading branch information
tvdeyen authored Jan 18, 2023
2 parents 4bb857e + 052f83c commit 1329cf3
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 1329cf3

Please sign in to comment.