Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Add check for assets_manifest of ActionView::Base #240

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/requirejs/rails/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Engine < ::Rails::Engine
end
end

if ::Rails::VERSION::MAJOR >= 4
if ::Rails::VERSION::MAJOR >= 4 && defined?(ActionView::Base) && ActionView::Base.respond_to?(:assets_manifest)
config.after_initialize do |app|
config = app.config
rails_manifest_path = File.join(app.root, 'public', config.assets.prefix)
Expand Down