Sha256: b2d6f849fc8ffe366aa342ccfef5a7c75f43ff07284669b1c43576d8ac168877

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

require 'active_support/dependencies'
require 'api_taster/engine'
require 'api_taster/route'
require 'api_taster/mapper'
require 'api_taster/form_builder'

module ApiTaster
  def self.routes(&block)
    Route.route_set = Rails.application.routes
    Route.inputs    = {}
    Mapper.instance_eval(&block)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
api_taster-0.2.2 lib/api_taster.rb
api_taster-0.2.1 lib/api_taster.rb
api_taster-0.2.0 lib/api_taster.rb
api_taster-0.1.0 lib/api_taster.rb