Skip to content
Snippets Groups Projects
Commit dcd47736 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Merge branch 'master' into filter_activity

parents 6e5dd497 0a75266f
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ class LearningObject < ApplicationRecord
belongs_to :attachment, class_name: 'LearningObject::Attachment'
validates_presence_of :name, :publisher, :object_type, :language, :author, unless: :draft?
validates :id_dspace, presence: true, uniqueness: true
validates :id_dspace, presence: true, uniqueness: true, unless: :published?
default_scope { includes(:object_type, :attachment, :attachments) }
scope :missing_thumbnail, ->() { where(thumbnail_file_name: nil) }
......
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