Sha256: faed906eed935307d1439ff7707e581ce7cbe37850aa1075e43e565b7e18c40b

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

module Ryakuzu
  class MainController < RootController
    def index
      @schema = Ryakuzu::SchemaService.new.call.as_json
    rescue NoMethodError
      schema_error
    end

    private

    def schema_error
      @disable = true
      render :schema_error
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ryakuzu-0.3.0 app/controllers/ryakuzu/main_controller.rb