Module: ForgeryProtection::ControllerExtension
- Defined in:
- lib/forgery_protection/controller_extension.rb
Class Method Summary collapse
Class Method Details
.included(controller) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/forgery_protection/controller_extension.rb', line 5 def self.included(controller) controller.around_filter :detect_unverified_db_update, :if => proc { |c| c.protect_against_forgery? } def controller.permit_unverified_state_changes(*args) skip_filter :detect_unverified_db_update, *args end end |