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

Commit b05d053

Browse files
committed
Fix #210
1 parent 7d6cc88 commit b05d053

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/requirejs/rails/view_proxy.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ module Requirejs
22
module Rails
33
class ViewProxy
44
include ActionView::Context
5-
include ActionView::Helpers::AssetUrlHelper
6-
include ActionView::Helpers::TagHelper
5+
6+
if ::Rails::VERSION::MAJOR >= 4
7+
include ActionView::Helpers::AssetUrlHelper
8+
include ActionView::Helpers::TagHelper
9+
else
10+
include ActionView::Helpers::AssetTagHelper
11+
end
712
end
813
end
914
end

0 commit comments

Comments
 (0)