Module: Auth::Concerns::Shopping::ProductConcern

Extended by:
ActiveSupport::Concern
Includes:
ChiefModelConcern, EsConcern, OwnerConcern
Included in:
CartItemConcern, Shopping::Product
Defined in:
app/models/auth/concerns/shopping/product_concern.rb

Overview

need a seperate model that implements it

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#as_indexed_json(options = {}) ⇒ Object



109
110
111
112
113
114
115
116
# File 'app/models/auth/concerns/shopping/product_concern.rb', line 109

def as_indexed_json(options={})
 {
  name: name,
    price: price,
    resource_id: resource_id,
    public: public
 }
end