Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Clear up inconsistency in authorize_resource examples #924

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/cancan/controller_additions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ def load_resource(*args)
#
# class BooksController < ApplicationController
# authorize_resource :author
# authorize_resource :book
# authorize_resource :show
# end
#
# Here it will authorize :+show+, @+author+ on every action before authorizing the book.
# Here it will authorize @+author+, @+show+ on every action before authorizing the book.
#
# That first argument is optional and will default to the singular name of the controller.
# A hash of options (see below) can also be passed to this method to further customize it.
Expand Down