Module: RailsErrorDashboard::ApplicationHelper
- Defined in:
- app/helpers/rails_error_dashboard/application_helper.rb
Instance Method Summary collapse
-
#app_context ⇒ Hash
Returns the current application context param for preserving app selection across navigation.
-
#auto_link_urls(text, error: nil) ⇒ String
Automatically converts URLs in text to clickable links that open in new window Also highlights inline code wrapped in backticks with syntax highlighting Also converts file paths to GitHub links if repository URL is configured Supports http://, https://, and common patterns like github.com/user/repo.
-
#breadcrumb_badge_color(category) ⇒ String
Returns Bootstrap badge color class for breadcrumb category.
-
#extract_table_from_sql(sql) ⇒ String?
Extracts table name from a SQL query string.
-
#git_commit_link(git_sha, short: true) ⇒ String
Generates a link to a git commit if repository URL is configured.
-
#js_safe_json(value) ⇒ Object
Serialize a value to JSON safely for inlining inside a " would break out of the surrounding in our views so they pass strict CSP.
<%= red_javascript_tag do %> console.log('hi'); <% end %>