Class: AriController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/generators/templates/controllers/ari_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
# File 'lib/generators/templates/controllers/ari_controller.rb', line 2

def index
  @models = Ari::Inspector.collect_models()
end

#showObject



6
7
8
# File 'lib/generators/templates/controllers/ari_controller.rb', line 6

def show
  @data = Ari::Inspector.inspect_data(params[:id], params[:method], params[:where], params[:parent_model], params[:parent_id], params[:belongs_to], params[:collection], params[:offset].to_i)
end