Skip to content

Commit

Permalink
use app instead of full Rails.application.config
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellhenke committed Nov 9, 2023
1 parent 777e676 commit cbac21b
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 @@ -14,7 +14,7 @@ class Engine < Rails::Engine # :nodoc:

initializer "view_component.set_configs" do |app|
if app.config.view_component.frozen_string_literal == :inherit_from_rails
app.config.view_component.frozen_string_literal = !!Rails.application.config.action_view.frozen_string_literal
app.config.view_component.frozen_string_literal = !!app.config.action_view.frozen_string_literal
end
options = app.config.view_component

Expand Down

0 comments on commit cbac21b

Please sign in to comment.