Class: ActionController::Base
- Includes:
- AnnotationSecurity::ActionController
- Defined in:
- lib/annotation_security/rails/extensions/action_controller.rb
Overview
Extends ActionController::Base for security.
Instance Method Summary collapse
-
#redirect_to(*args, &block) ⇒ Object
Before redirecting, evaluates the bounded rules of the current action.
- #redirect_to_without_security ⇒ Object
-
#render(*args, &block) ⇒ Object
Before rendering, evaluates the bounded rules of the current action.
- #render_without_security ⇒ Object
Methods included from AnnotationSecurity::ActionController
Instance Method Details
#redirect_to(*args, &block) ⇒ Object
Before redirecting, evaluates the bounded rules of the current action.
27 28 29 30 |
# File 'lib/annotation_security/rails/extensions/action_controller.rb', line 27 def redirect_to(*args, &block) SecurityContext.apply_rules_after_action redirect_to_without_security(*args, &block) end |
#redirect_to_without_security ⇒ Object
23 |
# File 'lib/annotation_security/rails/extensions/action_controller.rb', line 23 alias redirect_to_without_security redirect_to |
#render(*args, &block) ⇒ Object
Before rendering, evaluates the bounded rules of the current action.
18 19 20 21 |
# File 'lib/annotation_security/rails/extensions/action_controller.rb', line 18 def render(*args, &block) SecurityContext.apply_rules_after_action render_without_security(*args, &block) end |
#render_without_security ⇒ Object
14 |
# File 'lib/annotation_security/rails/extensions/action_controller.rb', line 14 alias render_without_security render |