--- a/compass-app/platforms/android/assets/www/js/app.js
+++ b/compass-app/platforms/android/assets/www/js/app.js
@@ -1,11 +1,59 @@
App = Ember.Application.create();
+
+App.ApplicationAdapter = DS.LSAdapter.extend({
+ namespace: 'compass'
+});
+
+App.Question = DS.Model.extend({
+ detail : DS.attr('string')
+});
+
+App.ApplicationRoute = Ember.Route.extend({
+ model: function() {
+ this.store.push('question', {
+ id: 1,
+ detail: "Did you create software?"
+ });
+
+ this.store.push('question', {
+ id: 2,
+ detail: "Do you hold copyright?"
+ });
+
+ this.store.push('question', {
+ id: 3,
+ detail: "Have you obtained rights to code?"
+ });
+
+ this.store.push('question', {
+ id: 4,
+ detail: "Do you want to share source?"
+ });
+
+ this.store.push('question', {
+ id: 5,
+ detail: "Should any future distributions be required to use your licence choice?"
+ });
+
+ this.store.push('question', {
+ id: 6,
+ detail: "May users distribute their extensions and modifications on a different licence ?"
+ });
+
+
+ }
+});
App.Router.map(function() {
// put your routes here
+
+ this.route('questions', { path: '/' });
+
});
-App.IndexRoute = Ember.Route.extend({
+App.QuestionsRoute = Ember.Route.extend({
model: function() {
- return ['red', 'yellow', 'blue'];
+ // the model is an Array of all of the posts
+ return this.store.find('question');
}
});