class Store include Mongoid::Document include Mongoid::Timestamps default_scope ne(status: "DELETED") #attr_accessible :name, :picture, :website, :description, :about, :phone, :settings, :cover, :location #FROM iMuaSam #RELATIONS has_many :categories has_many :widgets embeds_one :settings, class_name: "Settings" embeds_one :location embeds_one :activity ##FIELD field :status, type: String field :currency, type: String field :language, type: String field :store_category, type: String field :fb_link, type: String field :username, type: String field :like_count, type: Integer field :terms_and_policies, type:String field :email, type:String field :count, type: Integer field :handling_time, type:String #FROM GRAPH API ##RELATIONS embeds_one :token, as: :fb_token embeds_one :cover, as: :photoable, class_name: 'Photo', store_as: 'cover' ##FIELDS field :fb_id, type: String field :name, type: String field :website, type: String field :description, type: String field :about, type: String field :phone, type: String end