Skip to content

Commit 5fb466d

Browse files
committed
Fixes build for Gemfile, rails 7 by adding a new method that checks the rails version and appends media="screen" to the assertions. The setting config.action_view.apply_stylesheet_media_default = true was added in rails 7.
The method signature for ActionView::Base.new requires a couple of extra params which was also needed to get the build to pass.
1 parent 1f6eba8 commit 5fb466d

File tree

3 files changed

+73
-63
lines changed

3 files changed

+73
-63
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ gemspec
44

55
gem 'actionpack', github: 'rails/rails', branch: 'main'
66
gem 'railties', github: 'rails/rails', branch: 'main'
7-
gem 'rack', github: 'rack/rack', branch: 'master'
7+
gem 'rack', github: 'rack/rack', branch: 'master', ref: "e84bb296d1a16b32159608596f1f5a23b2016633"
88
gem 'sprockets', github: 'rails/sprockets', branch: '3.x'

0 commit comments

Comments
 (0)