Skip to content

Fix undefined method error

Vasilii Iakliushin requested to merge fix_undefined_method_error into master

Problem

Method decorated_routes was renamed to decorated_routes_by_helper_name, however we still use the old name for the call.

bundle exec rake grape:path_helpers

rake aborted!
NoMethodError: undefined method `decorated_routes' for Grape::API::Instance:Class
Did you mean?  decorated_routes_by_helper_name
Tasks: TOP => grape:path_helpers
(See full trace by running task with --trace)

Solution

  • Update the method call name
  • Add test to verify the correctness
Edited by Vasilii Iakliushin

Merge request reports