
class LogsController < Comm::BaseController::PermanentMaster
  def initialize
    @mcls = Log
  end
  
  def show_log
    log_conditions = []
    log_conditions = ["table_name = ? AND record_id = ?", params[:table_name], params[:id]] if params[:table_name] && params[:id]
    
    @logs = Log.find(:all,
                     :conditions => log_conditions
                     ).only_hashfy().add_disp_names()
                     
    respond_to do |format|
      format.ext_json{
        render :json => @logs.to_ext_json('logs')
      }
    end
  end
end
