Skip to content

Commit 29ce9e7

Browse files
committed
Merge pull request #116 from amatsuda/lazy_load_action_view
Bring back action_view lazy loading
2 parents 2ff626c + 1f480bf commit 29ce9e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/sprockets/rails/task.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'rake'
22
require 'rake/sprocketstask'
33
require 'sprockets'
4+
require 'action_view/base'
45

56
module Sprockets
67
module Rails

lib/sprockets/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def configure(&block)
8383
app.assets.append_path path
8484
end
8585

86-
ActionView::Base.instance_eval do
86+
ActiveSupport.on_load(:action_view) do
8787
include Sprockets::Rails::Helper
8888

8989
# Copy relevant config to AV context

0 commit comments

Comments
 (0)