mutewinter / tapas-with-ember

🚫 UNMAINTAINED: A Brunch skeleton for rapid Ember development. Including Ember installation scripts, environment-specific JS builds, generators, and Ember.vim support.
Other
127 stars 19 forks source link

Where to add the Adapter store file? #9

Closed millisami closed 10 years ago

millisami commented 10 years ago

The brunch generator doesn't create a file like store.coffee where one can add the ApplicationAdapter.

I created a file at config/store.coffee with content:

App.ApplicationAdapter = DS.RESTAdapter.extend
  host: 'http://localhost:4000'

App.Store = DS.Store.extend
  adapter: App.ApplicationAdapter

module.exports = App.ApplicationAdapter
module.exports = App.Store

But its not picked up.

Where should I place this file and what to write in it?

mutewinter commented 10 years ago

Tapas automatically loads folders in this order. If you want to load something else, you'll need to manually require it.