lib/stampable.rb
# Temporarily allows you to turn stamping off. For example:
#
#   Post.without_stamps do
#     post = Post.find(params[:id])
#     post.update_attributes(params[:post])
#     post.save
#   end
Temporarily allows you to turn stamping off.
Temporarily allows you to turn stamping off .
def without_stamps
          original_value = self.record_userstamp
          self.record_userstamp = false
          yield
        ensure
          self.record_userstamp = original_value
        end
def without_stamps original_value = self . record_userstamp self . record_userstamp = false yield ensure self . record_userstamp = original_value end
Temporarily allows you to turn stamping off.
Temporarily allows you to turn stamping off .