Closed wjordan closed 5 years ago
require 'sass/plugin/rack'
Why would a Rails 5 application do this? Just asking to understand why we need that code at all.
My particular use case is a lightweight Sinatra application designed to be inserted into a Rack middleware stack that may or may not include a Rails application.
Error is raised whenever
require 'sass/plugin/rack'
is included anywhere in a Rails 5 application. Minimal repro bash script (just addsrequire 'sass/plugin/rack'
in an initializer and starts a newrails server
):Raises "can't modify frozen Array" error in Rails 5 (
RAILS_VERSION=5.0.0.1 ./test.sh
), doesn't throw any error in Rails 4 (RAILS_VERSION=4.2.7.1 ./test.sh
).Full stacktrace: