Class: MissionKontrolRelay::ModelRetrievalService

Inherits:
Object
  • Object
show all
Defined in:
app/services/mission_kontrol_relay/model_retrieval_service.rb

Class Method Summary collapse

Class Method Details

.callObject


6
7
8
9
10
11
# File 'app/services/mission_kontrol_relay/model_retrieval_service.rb', line 6

def call
  Rails.application.eager_load!
  ActiveRecord::Base.descendants.collect do |table|
    table if valid_table?(table)
  end.compact
end