Class: ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ApplicationController
show all
- Defined in:
- lib/server/app/controllers/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#record_history ⇒ Object
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
|