Permalink
Browse files

Remove example of setting security_violation_handler [ci skip]

  • Loading branch information...
1 parent 1fd156c commit a40a777610b55c80373cd52055994abf3892716b @nathanl committed Jan 10, 2013
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/generators/templates/authority_initializer.rb
@@ -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:
#
@@ -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?

0 comments on commit a40a777

Please sign in to comment.