Sha256: 9c526932a7688fe3cc70a403463b201bb52619cb45d52847319a46a16edfb64f

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
models-0.0.22.1 app/models/store.rb