Sha256: b8ce02a4b3f0472f8ed014fce19f884ac7819e3aaaa54ba82c4026a8215f8aa0

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

Axel::Router
module Axel
  module ServiceResource
    module Routes
      extend ActiveSupport::Concern

      module ClassMethods
        def routes
          @_routes ||= {}.with_indifferent_access
        end

        def route(route_path, name, options = {})
          new_route = Router.new(self, route_path, name, options)
          routes[new_route.method_name] = new_route.define_route
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axel-0.0.1 app/models/axel/service_resource/routes.rb