lib/grape/router/route.rb in grape-0.16.2 vs lib/grape/router/route.rb in grape-0.17.0

- old
+ new

@@ -4,16 +4,16 @@ require 'pathname' module Grape class Router class Route - ROUTE_ATTRIBUTE_REGEXP = /route_([_a-zA-Z]\w*)/.freeze - SOURCE_LOCATION_REGEXP = /^(.*?):(\d+?)(?::in `.+?')?$/.freeze + ROUTE_ATTRIBUTE_REGEXP = /route_([_a-zA-Z]\w*)/ + SOURCE_LOCATION_REGEXP = /^(.*?):(\d+?)(?::in `.+?')?$/ FIXED_NAMED_CAPTURES = %w(format version).freeze attr_accessor :pattern, :translator, :app, :index, :regexp, :options - alias_method :attributes, :translator + alias attributes translator extend Forwardable def_delegators :pattern, :path, :origin def method_missing(method_id, *arguments)