Sha256: 9561ac52069c7c4f88874be7faccb87915625a87cfe73de9b1d9abfb4cbeec42

Contents?: true

Size: 503 Bytes

Versions: 9

Compression:

Stored size: 503 Bytes

Contents

require 'grape'
require 'active_support'
require 'active_support/core_ext/class'

require 'grape-path-helpers/decorated_route'
require 'grape-path-helpers/named_route_matcher'
require 'grape-path-helpers/all_routes'
require 'grape-path-helpers/route_displayer'

# Load the Grape route helper for Rails
module GrapePathHelpers
  require 'grape-path-helpers/railtie' if defined?(Rails)
end

Grape::API.extend GrapePathHelpers::AllRoutes
Grape::Endpoint.send(:include, GrapePathHelpers::NamedRouteMatcher)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
grape-path-helpers-1.2.0 lib/grape-path-helpers.rb
grape-path-helpers-1.1.0 lib/grape-path-helpers.rb
grape-path-helpers-1.0.6 lib/grape-path-helpers.rb
grape-path-helpers-1.0.5 lib/grape-path-helpers.rb
grape-path-helpers-1.0.4 lib/grape-path-helpers.rb
grape-path-helpers-1.0.3 lib/grape-path-helpers.rb
grape-path-helpers-1.0.2 lib/grape-path-helpers.rb
grape-path-helpers-1.0.1 lib/grape-path-helpers.rb
grape-path-helpers-1.0.0 lib/grape-path-helpers.rb