Class: HistoryController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/generators/et_history/templates/history_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
7
# File 'lib/generators/et_history/templates/history_controller.rb', line 2

def index
  unless params[:resource].nil? || params[:id].nil?
    resource = Object.const_get params[:resource]
    @object = resource.find(params[:id])
  end
end