You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the label is not HTML-escaped, so it ends up looking like this:
Besides escaping, it could also generate a better label, e.g. "SomeModule.lookup" for class/module methods, and "SomeClass#lookup" for instance methods.
The text was updated successfully, but these errors were encountered:
moduleMiniProfilerExt# The default label is "Object#method" instead of "Object method"defprofile_method(klass,method,type=:profile, &blk)label="#{klass.name}##{method}"# "Class#method"blk ||= proc{label}super(klass,method,type, &blk)end# The default label is "Object.method" instead of "#<Class:Object> method"# https://github.com/MiniProfiler/rack-mini-profiler/issues/483defprofile_singleton_method(klass,method,type=:profile, &blk)label="#{klass.name}.#{method}"blk ||= proc{label}profile_method(klass.singleton_class,method,type, &blk)endendRack::MiniProfiler.extend(MiniProfilerExt)
Example:
It uses this label:
#<Class:SomeModule> lookup
But the label is not HTML-escaped, so it ends up looking like this:
Besides escaping, it could also generate a better label, e.g. "SomeModule.lookup" for class/module methods, and "SomeClass#lookup" for instance methods.
The text was updated successfully, but these errors were encountered: