We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789c682 commit c388c28Copy full SHA for c388c28
lib/sprockets/rails/helper.rb
@@ -352,8 +352,16 @@ def find_debug_asset(path)
352
end
353
354
private
355
- def find_asset(path, options = {})
356
- @env[path, **options]
+ if RUBY_VERSION >= "2.7"
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
357
+ def find_asset(path, options = {})
358
+ @env[path, **options]
359
+ end
360
+ RUBY
361
+ else
362
363
+ @env[path, options]
364
365
366
367
def precompiled?(path)
0 commit comments