Sha256: 03de098d1c1f20fbdb7241d4f32ee0cb8f7d1959355c96ab1f8e8094110d0c0c
Contents?: true
Size: 369 Bytes
Versions: 28
Compression:
Stored size: 369 Bytes
Contents
require_dependency "scimitar/application_controller" module Scimitar class SchemasController < ApplicationController def index schemas = Scimitar::Engine.schemas schemas_by_id = schemas.reduce({}) do |hash, schema| hash[schema.id] = schema hash end render json: schemas_by_id[params[:name]] || schemas end end end
Version data entries
28 entries across 28 versions & 1 rubygems