markets / sudo_rails

🔒 Sudo mode for your Rails controllers
https://rubygems.org/gems/sudo_rails
MIT License
80 stars 2 forks source link

Remove Sprockets dependency #11

Closed markets closed 3 years ago

markets commented 3 years ago

Since now Rails has 2 assets pipelines, Sprockets and Webpacker, would be nice to remove the Sprockets dependency. I'd take the same approach we took in Maily: https://github.com/markets/maily/pull/48.

We already inject some styles, for customization, via: https://github.com/markets/sudo_rails/blob/master/app/views/sudo_rails/_inject_custom_styles.html.erb. So, it would be as easy as moving all default styles there.

NOTES