datacite / lupo

DataCite REST API
https://api.datacite.org
MIT License
12 stars 8 forks source link

fix deprecation warnings #1100

Closed wendelfabianchinsamy closed 7 months ago

wendelfabianchinsamy commented 10 months ago

Purpose

DEPRECATION WARNING: ActiveModel::Errors#values is deprecated and will be removed in Rails 7.0.

To achieve the same use:

errors.map { |error| error.message } (called from block in serialize_errors at /home/app/webapp/app/controllers/concerns/error_serializable.rb:15) .DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated: users/welcome.text.erb (called from format_message_text at /home/app/webapp/app/models/concerns/mailable.rb:166) DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated: users/welcome.html.erb (called from format_message_html at /home/app/webapp/app/models/concerns/mailable.rb:188)

DEPRECATION WARNING: Calling << to an ActiveModel::Errors message array in order to add an error is deprecated. Please call ActiveModel::Errors#add instead. (called from block in validate_each at /home/app/webapp/app/validators/xml_schema_validator.rb:69)

closes: https://github.com/datacite/lupo/issues/1099

Approach

Open Questions and Pre-Merge TODOs

Learning

Types of changes

Reviewer, please remember our guidelines: