rails / tailwindcss-rails

MIT License
1.39k stars 171 forks source link

generator: sync erb template to use Rails 7.0 APIs #359

Closed flavorjones closed 5 months ago

flavorjones commented 5 months ago

This PR is derived from the work @kinsomicrote did in #357.

Updates the erb templates to be in sync with the templates in rails/rails 7.0+ and so correctly supports namespaced models (see related rails/rails#43611).

flavorjones commented 5 months ago

@dhh Are you comfortable with dropping Rails 6.1 feature support in a minor release (likely v2.7.0) if/when this gets merged?

flavorjones commented 5 months ago

Rafael says he doesn't have concerns: https://discord.com/channels/849034466856665118/974005005768069211/1235247109012197517

But I'll give folks a chance to object before merging.