Class: Dossier::Formatter::UrlFormatter

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::UrlHelper
Defined in:
lib/dossier/formatter.rb

Instance Method Summary collapse

Instance Method Details

#_routesObject



20
21
22
# File 'lib/dossier/formatter.rb', line 20

def _routes
  Rails.application.routes
end

#controllerObject

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



25
26
# File 'lib/dossier/formatter.rb', line 25

def controller
end

#url_helpersObject



28
29
30
# File 'lib/dossier/formatter.rb', line 28

def url_helpers
  _routes.url_helpers
end