Method: AcceptableApi::Route#params_from
- Defined in:
- lib/acceptable_api/route.rb
#params_from(request) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/acceptable_api/route.rb', line 24 def params_from request matches = path_regex.match request.path matches.names.inject({}) { |a,e| a.merge! e.to_sym => matches[e] a } end |