1 class Orvos::V1::SchemaController < ApplicationController
2 skip_before_filter :find_object_by_uuid
4 Rails.application.eager_load!
6 ActiveRecord::Base.descendants.each do |k|
7 classes[k] = k.columns.collect do |col|
8 if k.serialized_attributes.has_key? col.name
10 type: k.serialized_attributes[col.name].object_class.to_s }