1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "Merge pull request #12990 from vipulnsward/remove_visualizer_param"

This reverts commit 5a19346d28, reversing
changes made to d82588ee47.

This argument is being used in the view
5a19346d28/actionpack/lib/action_dispatch/journey/visualizer/index.html.erb (L4)

It is being set using the binding
5a19346d28/actionpack/lib/action_dispatch/journey/gtg/transition_table.rb (L108)
This commit is contained in:
Rafael Mendonça França 2013-11-21 17:49:00 -02:00
parent 5a19346d28
commit b39b3652e1

View file

@ -69,7 +69,7 @@ module ActionDispatch
svg.join.sub(/width="[^"]*"/, '').sub(/height="[^"]*"/, '')
end
def visualizer(paths)
def visualizer(paths, title = 'FSM')
viz_dir = File.join File.dirname(__FILE__), '..', 'visualizer'
fsm_js = File.read File.join(viz_dir, 'fsm.js')
fsm_css = File.read File.join(viz_dir, 'fsm.css')