Sha256: 903cf98f4a48ffae2d91fe88eda1ff4c1f04e2fbabbaba46cbc430b0bdf60f9f

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true
# author: Vadim Shaveiko <@vshaveyko>
# :nodoc:
class RailsApiDoc::Controller::Response::Factory

  class << self

    # TODO: add more options later depending on app settings
    def repo
      ::RailsApiDoc::Controller::Response::Rabl.new(controllers)
    end

    def controllers
      RailsApiDoc::Controller::Request::Repository.registered_controllers
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_api_documentation-0.2.3 lib/rails_api_doc/controller/response/factory.rb