lib/grape/router/route.rb in grape-1.2.1 vs lib/grape/router/route.rb in grape-1.2.2
- old
+ new
@@ -96,12 +96,12 @@
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 <<-EOS
+ warn <<-WARNING
#{path}:#{line}: The route_xxx methods such as route_#{name} have been deprecated, please use #{expected}.
- EOS
+ WARNING
end
end
end
end