aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-21 17:49:00 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-21 17:49:00 -0200
commitb39b3652e166dd8914b031ebb2d1db046a2137d8 (patch)
treeee1b0dd14cccb48bd34a777576aeed16e24c9762 /actionpack
parent5a19346d2855ecb1c791cdef3af92589566d00db (diff)
downloadrails-b39b3652e166dd8914b031ebb2d1db046a2137d8.tar.gz
rails-b39b3652e166dd8914b031ebb2d1db046a2137d8.tar.bz2
rails-b39b3652e166dd8914b031ebb2d1db046a2137d8.zip
Revert "Merge pull request #12990 from vipulnsward/remove_visualizer_param"
This reverts commit 5a19346d2855ecb1c791cdef3af92589566d00db, reversing changes made to d82588ee4756b03025813b3997f4db171ee0fcdc. This argument is being used in the view https://github.com/rails/rails/blob/5a19346d2855ecb1c791cdef3af92589566d00db/actionpack/lib/action_dispatch/journey/visualizer/index.html.erb#L4 It is being set using the binding https://github.com/rails/rails/blob/5a19346d2855ecb1c791cdef3af92589566d00db/actionpack/lib/action_dispatch/journey/gtg/transition_table.rb#L108
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/journey/gtg/transition_table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/gtg/transition_table.rb b/actionpack/lib/action_dispatch/journey/gtg/transition_table.rb
index e8c4533522..5a79059ed6 100644
--- a/actionpack/lib/action_dispatch/journey/gtg/transition_table.rb
+++ b/actionpack/lib/action_dispatch/journey/gtg/transition_table.rb
@@ -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')