Class: Dossier::Formatter::UrlFormatter

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::UrlHelper
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



37
38
39
# File 'lib/dossier/formatter.rb', line 37

def _routes
  Rails.application.routes
end

#controllerObject

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



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

def controller
end

#url_helpersObject



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

def url_helpers
  _routes.url_helpers
end