lib/active_record/userstamp/controller_additions.rb
# This {#with_stamper} method sets the stamper for the duration of the action. This ensures
# that exceptions raised within the controller action would properly restore the previous stamper.
#
# TODO: Remove set_stamper/reset_stamper
This {#with_stamper} method sets the stamper for the duration of the action. This ensures
that exceptions raised within the controller action would properly restore the previous stamper.


This { #with_stamper } method sets the stamper for the duration of the action . This ensures that exceptions raised within the controller action would properly restore the previous stamper .
def with_stamper
    set_stamper
    yield
  ensure
    reset_stamper
  end
def with_stamper set_stamper yield ensure reset_stamper end
This {#with_stamper} method sets the stamper for the duration of the action.
This { #with_stamper } method sets the stamper for the duration of the action .