Skip to content

Commit

Permalink
Don't attempt to write show_previews_source
Browse files Browse the repository at this point in the history
  • Loading branch information
boardfish committed Oct 8, 2024
1 parent 49ec99c commit 8380bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_component/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Engine < Rails::Engine # :nodoc:
initializer "view_component.set_configs" do |app|
options = app.config.view_component

%i[generate preview_controller preview_route show_previews_source].each do |config_option|
%i[generate preview_controller preview_route].each do |config_option|
options[config_option] ||= ViewComponent::Base.public_send(config_option)
end
options.instrumentation_enabled = false if options.instrumentation_enabled.nil?
Expand Down

0 comments on commit 8380bd0

Please sign in to comment.