Skip to content

Instantly share code, notes, and snippets.

View SweeD's full-sized avatar

Markus Schwed SweeD

View GitHub Profile
locationToUse = if window.history.replaceState then 'history' else 'hash'
App.Router.reopen
location: locationToUse
@SweeD
SweeD / rest_adapter_config.coffee
Last active December 17, 2015 18:40
DS.RESTAdapter plurals configuration (Ember-Data)
DS.RESTAdapter.configure("plurals",
galleries: "galleries" # If your model is called App.Galleries
gallery: "galleries" # If your model is called App.Gallery
)

Keybase proof

I hereby claim:

  • I am sweed on github.
  • I am sweed (https://keybase.io/sweed) on keybase.
  • I have a public key ASBVw4LlvjW7bKfkBV9k2jky_-OCqzJ6fzNsgmZE-Ey-cwo

To claim this, I am signing this object: