Class: Dossier::Formatter::UrlFormatter

Inherits:
Object
  • Object
show all
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

Instance Method Details

#_routesObject



40
41
42
# File 'lib/dossier/formatter.rb', line 40

def _routes
  Rails.application.routes
end

#controllerObject

No controller in current context, must be specified when generating routes



45
46
# File 'lib/dossier/formatter.rb', line 45

def controller
end

#url_helpersObject



48
49
50
# File 'lib/dossier/formatter.rb', line 48

def url_helpers
  _routes.url_helpers
end