cancer_predict/app/controllers/admin/cancerpredicts_controller.rb

21 lines
613 B
Ruby

# encoding: utf-8
require 'rubyXL'
class Admin::CancerpredictsController < OrbitAdminController
#include Admin::CancerpredictsHelper
before_action ->(module_app = @app_title) { set_variables module_app }
#before_action :load_access_levels
def initialize
super
@app_title = "cancerpredict"
end
def index
@tags = @module_app.tags
@categories = @module_app.categories.enabled
@filter_fields = filter_fields(@categories, @tags)
@table_fields = [:status, :category, :title, :start_date, :end_date, :last_modified]
if request.xhr?
render :partial => "index"
end
end
end