mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
12 lines
192 B
Ruby
12 lines
192 B
Ruby
module VersionSession
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
before_save :add_session
|
|
|
|
def add_session
|
|
self.session = ::PaperSession.session
|
|
true
|
|
end
|
|
end
|
|
end
|