thoughtbot / suspenders

A Rails template with our standard defaults.
https://thoughtbot.com
MIT License
4.02k stars 528 forks source link

Include Rails environment as task dependency #1205

Closed stevepolitodesign closed 6 months ago

stevepolitodesign commented 6 months ago

Closes #1204

The suspenders:cleanup:organize_gemfile task was not loading the Rails environment, resulting in the following error:

undefined method `starts_with?' for an instance of String

This was only happening on existing applications not generated by the [application template][]

[application template]: https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb