Class: Dossier::Formatter::UrlFormatter
- Inherits:
-
Object
- Object
- Dossier::Formatter::UrlFormatter
- Includes:
- ActionDispatch::Routing::UrlFor, ActionView::Helpers::UrlHelper, ActionView::RoutingUrlFor
- Defined in:
- lib/dossier/formatter.rb
Overview
TODO figure out how to handle this better reports rendered with a system layout use this link_to instead of the correct one delegate :url_for, :link_to, :url_helpers, to: :url_formatter
Instance Method Summary collapse
- #_routes ⇒ Object
-
#controller ⇒ Object
No controller in current context, must be specified when generating routes.
- #url_helpers ⇒ Object
Instance Method Details
#_routes ⇒ Object
40 41 42 |
# File 'lib/dossier/formatter.rb', line 40 def _routes Rails.application.routes end |
#controller ⇒ Object
No controller in current context, must be specified when generating routes
45 46 |
# File 'lib/dossier/formatter.rb', line 45 def controller end |
#url_helpers ⇒ Object
48 49 50 |
# File 'lib/dossier/formatter.rb', line 48 def url_helpers _routes.url_helpers end |