From 1ff10e223736695d0b8caf8b07c1f195208ae872 Mon Sep 17 00:00:00 2001
From: Mateus Rambo Strey <mars11@inf.ufpr.br>
Date: Mon, 18 Jan 2016 17:54:15 -0200
Subject: [PATCH] fix attachment classes name

---
 app/builders/builder.rb                  |  2 +-
 app/models/learning_object/attachment.rb | 10 ++++------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/app/builders/builder.rb b/app/builders/builder.rb
index b43a5cdb..8607df0b 100644
--- a/app/builders/builder.rb
+++ b/app/builders/builder.rb
@@ -33,7 +33,7 @@ class Builder
   def self.cache_key(rid, last_modified)
     last_modified = Time.at(0).to_s if last_modified.nil?
 
-    rid + '/' + last_modified
+    "#{rid}/#{last_modified}"
   end
 
 end
diff --git a/app/models/learning_object/attachment.rb b/app/models/learning_object/attachment.rb
index 1a4b61ae..1aff7410 100644
--- a/app/models/learning_object/attachment.rb
+++ b/app/models/learning_object/attachment.rb
@@ -1,8 +1,6 @@
-module LearningObject
-  class Attachment
-    include ActiveModel::Model
+class LearningObject::Attachment
+  include ActiveModel::Model
 
-    #this attributes mirror Dspace bitstream values
-    attr_accessor :id, :name, :link, :retrieve_link, :description, :format, :mime_type, :size
-  end
+  #this attributes mirror Dspace bitstream values
+  attr_accessor :id, :name, :link, :retrieve_link, :description, :format, :mime_type, :size
 end
-- 
GitLab