moved api server code into new directory structure
[arvados.git] / app / controllers / orvos / v1 / schema_controller.rb
diff --git a/app/controllers/orvos/v1/schema_controller.rb b/app/controllers/orvos/v1/schema_controller.rb
deleted file mode 100644 (file)
index 8530bf4..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-class Orvos::V1::SchemaController < ApplicationController
-  skip_before_filter :find_object_by_uuid
-  def show
-    Rails.application.eager_load!
-    classes = {}
-    ActiveRecord::Base.descendants.reject(&:abstract_class?).each do |k|
-      classes[k] = k.columns.collect do |col|
-        if k.serialized_attributes.has_key? col.name
-          { name: col.name,
-            type: k.serialized_attributes[col.name].object_class.to_s }
-        else
-          { name: col.name,
-            type: col.type }
-        end
-      end
-    end
-    render json: classes
-  end
-end