Skip to content

Instantly share code, notes, and snippets.

@Ferdi
Ferdi / 0_reuse_code.js
Created May 30, 2014 19:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
module PreviouslyDirty
extend ActiveSupport::Concern
included do
attribute_method_suffix '_previously_changed?'
end
private
# Handle <tt>*_previously_changed?</tt> for +method_missing+.