lib/grape/router/route.rb in grape-1.5.3 vs lib/grape/router/route.rb in grape-1.6.0
- old
+ new
@@ -82,11 +82,11 @@
def warn_route_methods(name, location, expected = nil)
path, line = *location.scan(SOURCE_LOCATION_REGEXP).first
path = File.realpath(path) if Pathname.new(path).relative?
expected ||= name
- warn <<-WARNING
-#{path}:#{line}: The route_xxx methods such as route_#{name} have been deprecated, please use #{expected}.
+ warn <<~WARNING
+ #{path}:#{line}: The route_xxx methods such as route_#{name} have been deprecated, please use #{expected}.
WARNING
end
end
end
end