Skip to content

Commit

Permalink
Merge pull request #288 from gauravtiwari/fix-view-helpers
Browse files Browse the repository at this point in the history
Include webpacker helper to action view #172
  • Loading branch information
guilleiguaran authored Apr 26, 2017
2 parents 8052e01 + 3bc2baa commit 4664d62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/webpacker/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class Webpacker::Engine < ::Rails::Engine
ActionController::Base.helper Webpacker::Helper
end

ActiveSupport.on_load :action_view do
include Webpacker::Helper
end

Webpacker.bootstrap
Spring.after_fork { Webpacker.bootstrap } if defined?(Spring)
end
Expand Down

0 comments on commit 4664d62

Please sign in to comment.