Module: RailsAuditLog::ApplicationHelper Private
- Defined in:
- app/helpers/rails_audit_log/application_helper.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #dashboard_stylesheets ⇒ Object private
- #format_diff_value(value) ⇒ Object private
Instance Method Details
#dashboard_stylesheets ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 14 15 16 |
# File 'app/helpers/rails_audit_log/application_helper.rb', line 11 def dashboard_stylesheets dir = RailsAuditLog::Engine.root.join("app/assets/stylesheets/rails_audit_log") dir.glob("_*.css").sort.map do |file| stylesheet_link_tag("rails_audit_log/#{file.basename}", media: "all") end.join("\n").html_safe end |
#format_diff_value(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 7 8 9 |
# File 'app/helpers/rails_audit_log/application_helper.rb', line 4 def format_diff_value(value) return "—" if value.nil? return "#{value["type"]} ##{value["id"]}" if value.is_a?(Hash) value.inspect end |