Sha256: d57b834fd22a2759bff819c7f6b6e015d844f4f2f65cbce56ba0350cb797e9c4
Contents?: true
Size: 806 Bytes
Versions: 49
Compression:
Stored size: 806 Bytes
Contents
require_dependency "myreplicator/application_controller" module Myreplicator class HomeController < ApplicationController def index @tab = 'home' @option = 'overview' @exports = Export.order('state DESC') @logs = Log.where(:state => 'running').order("started_at DESC") @now = Time.zone.now respond_to do |format| format.html # index.html.erb format.json { render json: @exports } end end def errors @tab = 'home' @option = 'errors' @exports = Export.where("error is not null").order('source_schema ASC') @logs = Log.where(:state => 'error').order("started_at DESC") end def kill @log = Log.find(params[:id]) @log.kill redirect_to :action => 'index' end end end
Version data entries
49 entries across 49 versions & 1 rubygems