mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Do not allow more than 4 simultaneous EPP connections
This commit is contained in:
parent
b39c3ab262
commit
6a63c258f6
5 changed files with 25 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
|||
class EppSession < ActiveRecord::Base
|
||||
before_save :marshal_data!
|
||||
|
||||
belongs_to :registrar
|
||||
# rubocop: disable Rails/ReadWriteAttribute
|
||||
# Turned back to read_attribute, thus in Rails 4
|
||||
# Turned back to read_attribute, thus in Rails 4
|
||||
# there is differences between self[:data] and read_attribute.
|
||||
def data
|
||||
@data ||= self.class.unmarshal(read_attribute(:data)) || {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue