We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a4fe65 commit df46170Copy full SHA for df46170
lib/sprockets/rails/helper.rb
@@ -88,7 +88,7 @@ def compute_asset_path(path, options = {})
88
message << "To bypass the asset pipeline and preserve this behavior,\n"
89
message << "use the `skip_pipeline: true` option.\n"
90
91
- call_stack = Kernel.respond_to?(:caller_locations) ? caller_locations : caller
+ call_stack = Kernel.respond_to?(:caller_locations) && ::Rails::VERSION::MAJOR >= 5 ? caller_locations : caller
92
ActiveSupport::Deprecation.warn(message, call_stack)
93
end
94
super
0 commit comments