Module: WebPipe::Rails

Included in:
Conn
Defined in:
lib/web_pipe/extensions/rails/rails.rb

Overview

See the docs for the extension linked from the README.

Instance Method Summary collapse

Instance Method Details

#helpersObject



16
17
18
# File 'lib/web_pipe/extensions/rails/rails.rb', line 16

def helpers
  rails_controller.helpers
end

#render(*args) ⇒ Object



9
10
11
12
13
# File 'lib/web_pipe/extensions/rails/rails.rb', line 9

def render(*args)
  set_response_body(
    rails_controller.renderer.render(*args)
  )
end

#url_helpersObject



21
22
23
# File 'lib/web_pipe/extensions/rails/rails.rb', line 21

def url_helpers
  ::Rails.application.routes.url_helpers
end