mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Change implementation of the Settings base class [SCI-1004]
This commit is contained in:
parent
2aba0f46a6
commit
7703db3386
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
class Settings < ActiveRecord::Base
|
||||
private_class_method :new
|
||||
@instance = first
|
||||
|
||||
def self.instance
|
||||
@instance ||= new
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue