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:
I hereby claim:
To claim this, I am signing this object:
DS.RESTAdapter.configure("plurals", | |
galleries: "galleries" # If your model is called App.Galleries | |
gallery: "galleries" # If your model is called App.Gallery | |
) |
locationToUse = if window.history.replaceState then 'history' else 'hash' | |
App.Router.reopen | |
location: locationToUse |
App.Router.map -> | |
@resource 'portal', -> | |
@route 'dashboard' | |
@resource 'developers', -> | |
@resource 'messages', -> | |
@route 'inbox' | |
@route 'hidden' | |
@resource 'sysops', -> |
App.User = DS.Model.extend | |
#... | |
addresses: DS.hasMany(GleichklangWeb.Address, { embedded: true }) | |
App.Address = DS.Model.extend | |
#... | |
user: DS.belongsTo(GleichklangWeb.User) |
When I try to find a model in the console, i get an error. | |
MyApp.User.find(98) | |
> TypeError: Object Ember has no method 'merge' |
class NewTrohpyRoute | |
def self.matches?(request) | |
trophy_id = request.params[:trophy_id] # Not sure if you can get the params this way | |
return NewTrophy.where(:id => trophy_id).count > 1 | |
end | |
end |
class Object | |
def arrayify | |
[*self] | |
end | |
end |