Closed timoteus closed 8 years ago
Instead of assuming resource id is named "id" this PR let's you override it and specify the name of the resource id while defaulting to "id" if none is specified.
Use it like so:
plug :load_resource, model: User, id: "user_id", only: :show
Just a few small comments! :smiley:
:v:
I see you added Travis integration! Great!
Beauty! Merged :ok_hand:
Instead of assuming resource id is named "id" this PR let's you override it and specify the name of the resource id while defaulting to "id" if none is specified.
Use it like so: