Disallow blank EppSession#session_id

#700
This commit is contained in:
Artur Beljajev 2018-02-06 23:53:14 +02:00
parent 4163ee9017
commit 1c560b1748
2 changed files with 17 additions and 0 deletions

View file

@ -1,6 +1,8 @@
class EppSession < ActiveRecord::Base
before_save :marshal_data!
validates :session_id, presence: true
belongs_to :registrar
# rubocop: disable Rails/ReadWriteAttribute
# Turned back to read_attribute, thus in Rails 4