Skip to content

Commit

Permalink
Fix extending ActionView::Base instances
Browse files Browse the repository at this point in the history
In rails/rails@1165401 the Active Support core extension for
Kernel#class_eval was removed so we need to call it on the
singleton_klass ourselves.
  • Loading branch information
pixeltrix committed Sep 12, 2020
1 parent 3ad8f0d commit 66fd4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/rails/helper.rb
Expand Up @@ -58,7 +58,7 @@ def assets_environment
end

def self.extended(obj)
obj.class_eval do
obj.singleton_class.class_eval do
attr_accessor(*VIEW_ACCESSORS)

remove_method :assets_environment
Expand Down

0 comments on commit 66fd4ab

Please sign in to comment.