Class: Rebels::Factories::RequestFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/rebels/factories/request_factory.rb

Instance Method Summary collapse

Instance Method Details

#from_rails(request) ⇒ Object



2
3
4
# File 'lib/rebels/factories/request_factory.rb', line 2

def from_rails(request)
  Rebels::Values::Request.with(method: controller.request.request_method, path: controller.request.path, path_params: controller.request.path_parameters, session: controller.session, params: controller.params, env: controller.env)
end