Fix bug.
This commit is contained in:
parent
0d10389597
commit
a3d760bddf
|
@ -225,7 +225,7 @@ class WritingConference
|
||||||
@setting ||= WritingConferenceSetting.first
|
@setting ||= WritingConferenceSetting.first
|
||||||
end
|
end
|
||||||
def self.get_setting
|
def self.get_setting
|
||||||
@setting ||= WritingConferenceSetting.first
|
@setting = WritingConferenceSetting.first
|
||||||
end
|
end
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,7 @@ class WritingConferenceSetting
|
||||||
Fields_names = ["year","publication_date"]
|
Fields_names = ["year","publication_date"]
|
||||||
field :display_fields_in_member_page, :type => Array, :default => ["year"]
|
field :display_fields_in_member_page, :type => Array, :default => ["year"]
|
||||||
field :publication_date_format, :type => String, :default => "%Y-%m-%d"
|
field :publication_date_format, :type => String, :default => "%Y-%m-%d"
|
||||||
|
# after_save do |setting|
|
||||||
|
# WritingConference.instance_variable_set(:@setting, setting)
|
||||||
|
# end
|
||||||
end
|
end
|
Loading…
Reference in New Issue