Method: ActiveSupport::CurrentAttributes#reset
- Defined in:
- activesupport/lib/active_support/current_attributes.rb
#reset ⇒ Object
Reset all attributes. Should be called before and after actions, when used as a per-request singleton.
218 219 220 221 222 |
# File 'activesupport/lib/active_support/current_attributes.rb', line 218 def reset run_callbacks :reset do self.attributes = resolve_defaults end end |