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

remove duplicate code

parent 5247d0ea
No related branches found
No related tags found
No related merge requests found
class LearningObject::Attachment < ActiveRecord::Base
include ::Thumbnailable
belongs_to :learning_object
has_attached_file :thumbnail, styles: {medium: "530x300", small: "250x140"}
validates_attachment_content_type :thumbnail, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]
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