Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Remove example of setting security_violation_handler [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl committed Jan 10, 2013
1 parent 1fd156c commit a40a777
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/generators/templates/authority_initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# USER_METHOD
# ===========
# Authority needs the name of a method, available in any controller, which
# will return the currently logged-in user.
# will return the currently logged-in user. (If this varies by controller,
# just create a common alias.)
#
# Default is:
#
Expand Down Expand Up @@ -44,14 +45,6 @@
# :delete => 'deletable'
# }

# SECURITY_VIOLATION_HANDLER
# ==========================
# If a SecurityViolation is raised, what controller method should be used to rescue it?
#
# Default is:
#
# config.security_violation_handler = :authority_forbidden # Defined in controller.rb

# LOGGER
# ======
# If a user tries to perform an unauthorized action, where should we log that fact?
Expand Down

0 comments on commit a40a777

Please sign in to comment.