personal-conference/app/models/writing_conference_setting.rb

7 lines
288 B
Ruby
Raw 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"
end