Module: Roundabout
- Defined in:
- lib/roundabout.rb,
lib/roundabout/engine.rb,
lib/roundabout/railtie.rb,
lib/roundabout/version.rb,
lib/roundabout/recorder.rb,
app/controllers/roundabout/roundabout_controller.rb,
app/controllers/roundabout/application_controller.rb
Defined Under Namespace
Classes: ApplicationController, Engine, Railtie, Recorder, RoundaboutController
Constant Summary
collapse
- VERSION =
'0.2.0'
Class Method Summary
collapse
Class Method Details
.compile_page_transitions ⇒ Object
15
16
17
|
# File 'lib/roundabout.rb', line 15
def self.compile_page_transitions
recorder.transitions
end
|
.normalize_url(path, method = nil) ⇒ Object
19
20
21
22
|
# File 'lib/roundabout.rb', line 19
def self.normalize_url(path, method = nil)
h = Rails.application.routes.recognize_path(path, method: method)
"#{h[:controller]}##{h[:action]}"
end
|
.record_transition(from, to, method, type) ⇒ Object
7
8
9
|
# File 'lib/roundabout.rb', line 7
def self.record_transition(from, to, method, type)
recorder.record_transition from, to, method, type
end
|
.recorder ⇒ Object
11
12
13
|
# File 'lib/roundabout.rb', line 11
def self.recorder
@recorder ||= Recorder.new
end
|