Skip to content
Snippets Groups Projects
Commit 902d9182 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

validating dspace_url and dspace_handle

parent 616218dd
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,10 @@ class User < ApplicationRecord
validates :terms_of_service, acceptance: true
validates :dspace_url, presence: true, if: Proc.new {|u| !u.dspace_handle.blank? || !u.dspace_sets.blank?}
validates :dspace_handle, presence: true, if: Proc.new {|u| !u.dspace_url.blank? || !u.dspace_sets.blank?}
enum submitter_request: { default: 0, requested: 1, accepted: 2, rejected: 3 }
searchkick language: 'brazilian', match: :word_start, searchable: [:name], callbacks: :async
......
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