From 3db2664c1443872f696bd0b8a01fbf1df323e616 Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Mon, 10 Sep 2012 14:23:45 +0800 Subject: [PATCH] add missing file --- app/models/preview_association.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/models/preview_association.rb diff --git a/app/models/preview_association.rb b/app/models/preview_association.rb new file mode 100644 index 00000000..64785b9a --- /dev/null +++ b/app/models/preview_association.rb @@ -0,0 +1,16 @@ +class PreviewAssociation + + include Mongoid::Document + include Mongoid::Timestamps + + field :object, :type=> Hash + field :field_name_for_rebuild + field :object_in_array , :type => Boolean,default: false + + # field :to_save, :type => Boolean + field :should_destroy, :type => Boolean + + belongs_to :preview + # embedded_in :news_bulletin + +end