Module: Formidable::Controller
- Defined in:
- lib/formidable/controller.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/formidable/controller.rb', line 5 def included(base) base.class_eval do before_filter { |c| Formidable.clear_filtered_parameters Thread.current[:formidable_request] = c.request Thread.current[:formidable_cookies] = c.send(:cookies) } end end |