Class: Panel::MetaModelsController

Inherits:
BaseController show all
Defined in:
app/controllers/com/panel/meta_models_controller.rb

Constant Summary

Constants included from RailsCom::Application

RailsCom::Application::LOCALE_MAP

Instance Method Summary collapse

Methods included from RailsCom::Application

#current_title, #default_form_params, #default_params, #json_format?, #set_country, #set_flash, #set_locale, #set_timezone, #set_variant

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/com/panel/meta_models_controller.rb', line 6

def index
  @meta_models = MetaModel.order(record_name: :asc).page(params[:page])
end

#syncObject



10
11
12
# File 'app/controllers/com/panel/meta_models_controller.rb', line 10

def sync
  MetaModel.sync
end