Fix bug.
This commit is contained in:
parent
0d10389597
commit
a3d760bddf
|
@ -225,7 +225,7 @@ class WritingConference
|
|||
@setting ||= WritingConferenceSetting.first
|
||||
end
|
||||
def self.get_setting
|
||||
@setting ||= WritingConferenceSetting.first
|
||||
@setting = WritingConferenceSetting.first
|
||||
end
|
||||
protected
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue