Sha256: f72f3b55c2c4795eaa5044b121363b4384fe3e3ace9a3b5db26504aea3242f03
Contents?: true
Size: 695 Bytes
Versions: 4
Compression:
Stored size: 695 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems