forked from saurabh/personal-conference
10 lines
390 B
Ruby
10 lines
390 B
Ruby
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"
|
|
# after_save do |setting|
|
|
# WritingConference.instance_variable_set(:@setting, setting)
|
|
# end
|
|
end |