personal-conference/app/models/writing_conference_setting.rb

10 lines
390 B
Ruby
Raw Permalink Normal View History

class WritingConferenceSetting
include Mongoid::Document
include Mongoid::Timestamps
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"
2022-01-12 00:06:16 +00:00
# after_save do |setting|
# WritingConference.instance_variable_set(:@setting, setting)
# end
end