Sha256: e8355fac6b44701df213c675e156383f666167496fa612952c46f7673ae98aff
Contents?: true
Size: 617 Bytes
Versions: 6
Compression:
Stored size: 617 Bytes
Contents
module Voom module Presenters module Helpers module Route include Namespace def presenters_path(presenter, host: false, **params) presenter = _expand_namespace_(presenter, namespace) presenter = presenter.gsub(':', '/') router.url(render: presenter, host: host, context: params) end alias presenter_path presenters_path # Full qualified URL def presenters_url(presenter, **params) presenters_path(presenter, host: true, **params) end alias presenter_url presenters_url end end end end
Version data entries
6 entries across 6 versions & 1 rubygems