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

refactoring learning object attributes

parent c205b210
No related branches found
No related tags found
No related merge requests found
class LearningObject::ChunksController < ApplicationController
layout nil
#GET /chunk
#GET /learning_object/123/chunk
def show
#chunk folder path based on the parameters
dir = "/tmp/#{params[:resumableIdentifier]}"
......@@ -18,9 +18,8 @@ class LearningObject::ChunksController < ApplicationController
end
#POST /chunk
#POST /learning_object/123/chunk
def create
#chunk folder path based on the parameters
dir = "/tmp/#{params[:resumableIdentifier]}"
#chunk path based on the parameters
......
......@@ -5,18 +5,24 @@ class LearningObject
attr_accessor :id, :id_dspace, :rid, :name, :author, :description,
:published_at, :thumbnail, :created_at, :last_modified,
:type, :grade_level, :metadata, :score,
:school_level, :language, :source, :license, :copyright,
:country, :keywords, :grade_level, :attachments
:type, :metadata, :score, :school_level, :language,
:source, :license, :keywords, :attachments
# Relation attrs
#not implemented yet
attr_accessor :grade_level
# associations
attr_accessor :likes, :views, :downloads, :subjects, :attributes, :publisher
# Flags
# flags
attr_accessor :status
validates_presence_of :name, :created_at, :type
def self.types
['Imagem', 'Animação/simulação', 'Experimento prático', 'Software Educacional', 'Vídeo', 'Áudio', 'Hipertexto', 'Mapa', 'Outros', 'Link Externo']
end
def initialize(params={})
super(params.merge(defaults))
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