diff --git a/lib/cancan/controller_additions.rb b/lib/cancan/controller_additions.rb index 0c84f83e..a51f5b96 100644 --- a/lib/cancan/controller_additions.rb +++ b/lib/cancan/controller_additions.rb @@ -171,6 +171,11 @@ def load_resource(*args) # [:+instance_name+] # The name of the instance variable for this resource. # + # [:+id_param+] + # Find using a param key other than :id. For example: + # + # load_resource :id_param => :url # will use find(params[:url]) + # # [:+through+] # Authorize conditions on this parent resource when instance isn't available. #