Skip to content

Commit

Permalink
disable dates validation for now. #326
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 1, 2019
1 parent 4de4612 commit ac6f79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Doi < ActiveRecord::Base
validates_uniqueness_of :doi, message: "This DOI has already been taken", unless: :only_validate
validates :last_landing_page_status, numericality: { only_integer: true }, if: :last_landing_page_status?
validates :xml, presence: true, xml_schema: true, if: Proc.new { |doi| doi.validatable? }
validate :check_dates, if: :dates?
# validate :check_dates, if: :dates?

after_commit :update_url, on: [:create, :update]
after_commit :update_media, on: [:create, :update]
Expand Down

0 comments on commit ac6f79b

Please sign in to comment.