Skip to content

Commit

Permalink
Fix env usage in EppSession model
Browse files Browse the repository at this point in the history
  • Loading branch information
yulgolem committed Nov 13, 2020
1 parent 26c8fe6 commit 495e1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/epp_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class EppSession < ApplicationRecord
self.timeout = (ENV['epp_session_timeout_seconds'] || 300).to_i.seconds

class_attribute :sessions_per_registrar
self.sessions_per_registrar = (ENV['epp_session_limit_per_registrar'] || 4).to_i
self.sessions_per_registrar = (ENV['epp_sessions_per_registrar'] || 4).to_i

alias_attribute :last_access, :updated_at

Expand Down

0 comments on commit 495e1a4

Please sign in to comment.