Skip to content
Snippets Groups Projects
Commit 44f50865 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

adding fake data

parent f01c2a64
No related branches found
No related tags found
No related merge requests found
...@@ -23,16 +23,18 @@ class UsersController < ApplicationController ...@@ -23,16 +23,18 @@ class UsersController < ApplicationController
def me def me
@objects = learning_object_repository.all_from_offset_to_limit 0, 10 @objects = learning_object_repository.all_from_offset_to_limit 0, 10
@new_collection = Collection.new @new_collection = Collection.new
@new_collection.name = 'Favoritos' @bookmarks = Collection.new(name: 'Favoritos')
@add1 = Collection.new(name: 'Aula física quantica - turma b')
@add2 = Collection.new(name: 'Aula segunda lei de newton - turma a')
@groups = [ @groups = [
CollectionsGroup.new(title: 'Coleções Automáticas', CollectionsGroup.new(title: 'Coleções Automáticas',
collections: [ collections: [
@new_collection @bookmarks
]), ]),
CollectionsGroup.new(title: 'Coleções adicionadas', CollectionsGroup.new(title: 'Coleções Adicionadas',
collections: [ collections: [
@new_collection @add1, @add2
]) ])
] ]
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment