mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Version refactored
This commit is contained in:
parent
c1949e7069
commit
3e2be53853
48 changed files with 379 additions and 147 deletions
|
@ -12,3 +12,15 @@ elsif File.basename($PROGRAM_NAME) == "rake"
|
|||
# rake username does not work when spring enabled
|
||||
PaperTrail.whodunnit = "rake-#{`whoami`.strip} #{ARGV.join ' '}"
|
||||
end
|
||||
|
||||
class PaperSession
|
||||
class << self
|
||||
def session
|
||||
@session ||= Time.now.to_s(:db)
|
||||
end
|
||||
|
||||
def session=(code)
|
||||
@session = code
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue