Skip to content

Instantly share code, notes, and snippets.

This document aims to help aggregate issues and solutions around the defaultContainer deprecation.

The Error Message:

Using the defaultContainer is no longer supported. [defaultContainer#lookup]

breaux, where's my defaultContainer?

Well it is still there, and will continue to work for some time. Likely it will be gone by 1.0.0 final

@pivotal-medici
pivotal-medici / ember-data.js
Created October 19, 2012 21:46
ember-data/master
(function() {
window.DS = Ember.Namespace.create({
CURRENT_API_REVISION: 7
});
})();
(function() {
@pivotal-medici
pivotal-medici / gist:3165855
Created July 23, 2012 19:59
handle multiple event handlers competing to modify and save an ember data object
/*
This code handles the case where your focusOut event handler tries to commit an ember-data object.
If the user was editing a text field and clicked a button, both a focusOut event and a click event
will be fired. If both of these handlers try to modify and commit the same ember-data object, the
object will be in-flight and the second handler will fail.
*/
function waitForKeyTrue(obj, key, fn) {
var id = Date.now();
var observationFn = function() {
@pivotal-medici
pivotal-medici / nokogiri_https.rb
Created July 10, 2012 18:57 — forked from kinopyo/nokogiri_https.rb
nokogiri parse https url
require 'net/https'
require 'nokogiri'
url = "https://example.com"
url = URI.parse( url )
http = Net::HTTP.new( url.host, url.port )
http.use_ssl = true if url.port == 443
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if url.port == 443
path = url.path
path += "?" + url.query unless url.query.nil?
@pivotal-medici
pivotal-medici / index.html
Created June 19, 2012 17:49
Deleting only unsaved child in relationship throws exception
<html>
<script src="/jquery.js" type="text/javascript"></script>
<script src="/handlebars.js" type="text/javascript"></script>
<script src="/ember.js" type="text/javascript"></script>
<script src="/ember-data.js" type="text/javascript"></script>
<script src="/test.js" type="text/javascript"></script>
</html>
@pivotal-medici
pivotal-medici / libcouchbase.rb
Created June 8, 2012 13:31 — forked from davidjrice/libcouchbase.rb
Homebrew recipe for libcouchbase 1.1.0.dp2
require 'formula'
class Libcouchbase < Formula
homepage 'http://couchbase.com/develop/c/next'
url 'http://packages.couchbase.com/clients/c/libcouchbase-1.1.0dp4.tar.gz'
md5 '546025c8f5e0aaa8f57bb350f2949694'
depends_on 'libevent'
depends_on 'libvbucket'
@pivotal-medici
pivotal-medici / link.js
Created June 4, 2012 14:14
Ember run loop sync issues
@pivotal-medici
pivotal-medici / alias.sh
Created April 24, 2012 19:57
Aliases on this project
alias rebasemaster="git fetch && git rebase origin/master"
alias deploy_s="git push staging master"
alias deploy_p="git push production master"
alias mate="mvim"
alias rubymine="mvim"
alias rake="time rake"
alias rkae="rake"
alias rkea="rake"
alias letsdothis="git pull --rebase && rake && git push origin HEAD && deploy_s && ctuuu"
alias doit="letsdothis"