mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Refactor
This commit is contained in:
parent
4c884cce37
commit
9baa65a775
6 changed files with 159 additions and 22 deletions
13
app/models/epp/expired_sessions.rb
Normal file
13
app/models/epp/expired_sessions.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
module Epp
|
||||
class ExpiredSessions
|
||||
attr_reader :sessions
|
||||
|
||||
def initialize(sessions)
|
||||
@sessions = sessions
|
||||
end
|
||||
|
||||
def clear
|
||||
sessions.find_each(&:destroy!)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue