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

Commit d02ff1b

Browse files
committed
Check whether the ActionView::Base#check_precompiled_asset method exists for backwards compatibility
1 parent 1efba0e commit d02ff1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/requirejs/rails/view.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ module Requirejs
22
module Rails
33
class View < ::ActionView::Base
44
# This allows requirejs-rails to serve up modules by their undigestified asset paths.
5-
self.check_precompiled_asset = false
5+
self.check_precompiled_asset = false \
6+
if respond_to?(:check_precompiled_asset)
67
end
78
end
89
end

0 commit comments

Comments
 (0)