app/views/_xray_bar.html.erb in xray-rails-0.1.5 vs app/views/_xray_bar.html.erb in xray-rails-0.1.6
- old
+ new
@@ -8,10 +8,10 @@
<span class="xray-bar-btn xray-bar-controller xray-icon-flash" data-path="<%= Xray.request_info[:controller][:path] %>">
<b></b>
<%= Xray.request_info[:controller][:name] %><span class="xray-bar-controller-action">#<%= Xray.request_info[:controller][:action] %></span>
</span>
<% end %>
- <% if Xray.request_info[:view] %>
+ <% if Xray.request_info[:view] && Xray.request_info[:controller][:name] != "Rails::InfoController" %>
<% layout_path = lookup_context.find(Xray.request_info[:view][:layout]).identifier %>
<span class="xray-bar-btn xray-bar-layout xray-icon-columns" data-path="<%= layout_path %>">
<b></b>
<%= layout_path.split('/').last %>
</span>