Closed pupeno closed 5 years ago
I have seen the same thing. Every run produces a git diff because the number changes.
# Prefix Verb URI Pattern Controller#Action
# /__OPAL_SOURCE_MAPS__ #<Opal::SourceMapServer:49235340>
Maybe .class.name
should annotate if it's not a string?
+1 I'm experiencing this issue on every merge from another developer. It's becoming fairly annoying. Does anyone know the offending code so I can have a go at fixing it?
It appears to be coming from Rails and not from annotate. https://github.com/ctran/annotate_models/blob/develop/lib/annotate/annotate_routes.rb#L54
A workaround:
invitation_endpoint = proc { raise ActionController::RoutingError.new('Not Found') }.tap do |proc|
def proc.inspect
'proc endpoint'
end
end
match "/users/invitation", via: :all, to: invitation_endpoint
When you have a route with proc, such as:
the route is annotated exposing local paths and with an id that may change:
It would be better to just or something like that.