Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created December 19, 2010 23:37
Show Gist options
  • Save benlangfeld/747834 to your computer and use it in GitHub Desktop.
Save benlangfeld/747834 to your computer and use it in GitHub Desktop.
class ActiveRecord::Base
def skip_stamp
self.record_timestamps = false
yield
self.record_timestamps = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment