This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def method_missing(method, *args, &block) | |
begin | |
super | |
rescue NoMethodError => e | |
warn("Warning: Unknown field or method #{method} for object #{self.inspect}\nBacktrace:\n#{e.backtrace.join("\n")}") | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module EventMachine | |
module Middleware | |
require 'digest' | |
require 'securerandom' | |
require 'cgi' | |
class DigestAuth | |
def initialize(opts = {}) | |
@nonce_count = -1 | |
@opts = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
console.log("document loaded."); | |
$(document).ajaxStart(function() { | |
console.log(".ajaxStart fired!"); | |
}); | |
$(document).ajaxComplete(function() { | |
console.log(".ajaxComplete fired!"); | |
}); | |
}); |
NewerOlder