class ActionController::Base
note, do not do this here: class ApplicationController < ActionController::Base
it will prevent application_controller.rb from loading
Public Instance Methods
backstack_dump()
click to toggle source
Debugging method for calling inside controller, probably best as before_filter :backstack_dump in application_controller.rb
# File lib/backstack.rb, line 129 def backstack_dump # don't accidentally run in production return unless Rails.env == 'development' puts "=== backstack_dump() " + '=' * 50 puts "backstack graph: #{self.class.get_bs_graph}" puts "backstack labels: #{self.class.get_bs_labels}" puts "backstack stack: #{session[:bs_stack]}" puts '=' * 71 end
bs_pusher()
click to toggle source
# File lib/backstack.rb, line 146 def bs_pusher action = self.class.bs_action_normal(controller_name, action_name) session[:bs_stack] = bs_push(self.class.get_bs_graph, session[:bs_stack], action, request.fullpath, self.class.get_bs_labels[action]) end