Module: Egalite::CSRFFilter
- Defined in:
- lib/egalite.rb
Instance Method Summary collapse
-
#after_filter_return_value(response) ⇒ Object
right after controller.
Instance Method Details
#after_filter_return_value(response) ⇒ Object
right after controller
317 318 319 320 321 322 323 324 325 326 327 |
# File 'lib/egalite.rb', line 317 def after_filter_return_value(response) # right after controller p "CSRFFilter" if session and session.sstr and response.is_a?(Hash) response.merge(:csrf => session.sstr) elsif session and session.sstr and response.is_a?(Sequel::Model) response[:csrf] = session.sstr response else response end end |