lib/generators/phlex/install/install_generator.rb in phlex-rails-1.1.2 vs lib/generators/phlex/install/install_generator.rb in phlex-rails-1.2.0

- old
+ new

@@ -3,11 +3,11 @@ module Phlex::Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path("templates", __dir__) APPLICATION_CONFIGURATION_PATH = Rails.root.join("config/application.rb") - TAILWIND_CONFIGURATION_PATH = Rails.root.join("config/tailwind.config.js") + TAILWIND_CONFIGURATION_PATH = Rails.root.join("tailwind.config.js") def autoload_components return unless APPLICATION_CONFIGURATION_PATH.exist? inject_into_class( @@ -40,10 +40,9 @@ def configure_tailwind return unless TAILWIND_CONFIGURATION_PATH.exist? insert_into_file TAILWIND_CONFIGURATION_PATH, after: "content: [" do "\n './app/views/**/*.rb'," \ - "\n './app/components/**/*rb'," end end def create_application_component template "application_component.rb", Rails.root.join("app/views/components/application_component.rb")