Skip to content

Commit

Permalink
Fixes build for Gemfile, rails 7 by adding a new method that checks t…
Browse files Browse the repository at this point in the history
…he 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.
  • Loading branch information
hahmed committed Jun 19, 2021
1 parent 1f6eba8 commit 5fb466d
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 63 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -4,5 +4,5 @@ gemspec

gem 'actionpack', github: 'rails/rails', branch: 'main'
gem 'railties', github: 'rails/rails', branch: 'main'
gem 'rack', github: 'rack/rack', branch: 'master'
gem 'rack', github: 'rack/rack', branch: 'master', ref: "e84bb296d1a16b32159608596f1f5a23b2016633"
gem 'sprockets', github: 'rails/sprockets', branch: '3.x'

0 comments on commit 5fb466d

Please sign in to comment.