24 lines
673 B
Ruby
24 lines
673 B
Ruby
# encoding: utf-8
|
|
require 'rubyXL'
|
|
class CancerpredictsController < ApplicationController
|
|
before_filter :set_I18n
|
|
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
|
|
def set_I18n
|
|
I18n.locale = params[:lang] if params[:lang].present?
|
|
end
|
|
end |