Class: ActiveMetadata::HistoriesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/active_metadata/histories_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
12
13
# File 'app/controllers/active_metadata/histories_controller.rb', line 6

def index
   @document = eval(params[:model_name]).find params[:model_id] 
   @histories = @document.history_for params[:field_name]      
   respond_to do |format|
     format.html { render :layout => false}
     format.xml  { render :xml => @histories }
   end
end