We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cdbba7 commit a47f989Copy full SHA for a47f989
lib/cancan/controller_additions.rb
@@ -171,6 +171,11 @@ def load_resource(*args)
171
# [:+instance_name+]
172
# The name of the instance variable for this resource.
173
#
174
+ # [:+id_param+]
175
+ # Find using a param key other than :id. For example:
176
+ #
177
+ # load_resource :id_param => :url # will use find(params[:url])
178
179
# [:+through+]
180
# Authorize conditions on this parent resource when instance isn't available.
181
0 commit comments