Fix circular dependency while loading Settings [SCI-1004]

This commit is contained in:
Oleksii Kriuchykhin 2017-02-21 14:38:13 +01:00
parent ea1711be83
commit 53ba9437b2

View file

@ -1,7 +1,6 @@
class Settings < ActiveRecord::Base
@instance = first
def self.instance
@instance ||= first
@instance ||= new
end
end