psr7-demo
psr7-demo copied to clipboard
Demo scripts that showcase the power of PSR-7, Guzzle, and php-http/adapter
This PR was generated automatically using ember-k-codemod
I put together an app which uses the detached hasMany provided in the fireplace docs: https://github.com/steven-ferguson/fireplace-detached-example `person.tasks` looks like it is just getting all the data under `tasks_by_person` instead of...
The latest Firebase client [supports atomic multi-location updates](https://www.firebase.com/blog/2015-09-24-atomic-writes-and-more.html) ``` javascript var ref = new Firebase("https://.firebaseio.com"); // Generate a new push ID for the new post var newPostRef = ref.child("posts").push(); var...
I was disappointed to see that this was converted to a pure Ember CLI add-on, not because that's not great, but because I don't use Ember CLI for my Ember...
Do you plan on adding [transaction](https://www.firebase.com/docs/web/api/firebase/transaction.html) support at any point in the future? Or do you recommend just using firebase references directly for this?
Here is the basic problem I'm having with hasMany relationships. I have an action on a route that needs to set not only direct properties but properties on certain the...
Firebase will store arrays like `["a", "b"]` as `{0: "a", 1: "b"}` and likewise return that array if it comes across that object. So I added an array transform to...
Route: ``` coffeescript PortfolioAddAllocationRoute = Ember.Route.extend beforeModel: -> @set "fork", @store.fork() model: (params) -> @fork.fetch("portfolio", @modelFor("portfolio").get "id").then (portfolioFork) => @set "allocation", portfolioFork.get("allocations").pushObject @fork.createRecord "allocation" @get "allocation" deactivate: -> @fork.destroy() actions:...
I just ran into a situation where I have an embedded model that only sometimes has data in Firebase (i.e. it's optional). Then when the parent model is resolved in...
If I have a model like so: ``` var ItemModel = FP.Model.extend({ title: FP.attr('string'), completed: FP.attr('boolean', { default: false }), completedDidChange: function () { console.log('in here'); this.save(); }.observes('completed') }); ```...