This commit is contained in:
BoHung Chiu 2022-01-12 08:06:16 +08:00
parent 0d10389597
commit a3d760bddf
2 changed files with 4 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class WritingConference
@setting ||= WritingConferenceSetting.first
end
def self.get_setting
@setting ||= WritingConferenceSetting.first
@setting = WritingConferenceSetting.first
end
protected

View File

@ -4,4 +4,7 @@ class WritingConferenceSetting
Fields_names = ["year","publication_date"]
field :display_fields_in_member_page, :type => Array, :default => ["year"]
field :publication_date_format, :type => String, :default => "%Y-%m-%d"
# after_save do |setting|
# WritingConference.instance_variable_set(:@setting, setting)
# end
end