Class: Pgbus::ApplicationController

Inherits:
Object
  • Object
show all
Includes:
Web::Authentication
Defined in:
app/controllers/pgbus/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#pgbusObject

Make ‘pgbus` route proxy available in views (e.g. pgbus.root_path). With isolate_namespace, the non-prefixed helpers (root_path) work inside the engine, but the views use the pgbus.* proxy form for clarity.



24
25
26
# File 'app/controllers/pgbus/application_controller.rb', line 24

def pgbus
  @pgbus ||= Pgbus::Engine.routes.url_helpers
end