Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow custom IDs to be specified when calling load_resource #425
I ran into a strange case where dealing with nested resource with a :path and :as option specified where i was not getting the usual :nested_resource_id generated with route helpers. Added this simple change to allow an :id_param option to override what ID is used out of the params when finding members.
Went with the :id_param name as it largely just affects the id_param method in ControllerResource.