app/controllers/apicasso/crud_controller.rb in apicasso-0.2.5 vs app/controllers/apicasso/crud_controller.rb in apicasso-0.2.6
- old
+ new
@@ -72,10 +72,9 @@
# OPTIONS /:resource
# OPTIONS /:resource/1/:nested_resource
# Will return a JSON with the schema of the current resource, using
# attribute names as keys and attirbute types as values.
def schema
- byebug
render json: resource_schema.to_json unless preflight?
end
private