Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/server/app/controllers/application_controller.rb

Direct Known Subclasses

ServicesController, SessionsController

Instance Method Summary collapse

Instance Method Details

#record_historyObject



5
6
7
8
9
10
11
12
13
# File 'lib/server/app/controllers/application_controller.rb', line 5

def record_history
  debugger
  @history = session[:history] || []

  unless params[:controller] == "sessions"
  @history << "#{params[:controller]}:#{params[:action]}"
  end
  session[:history] = @history
end