Sha256: 85987686e1fe1a447e72ea23e86a149b1e067d8cc9890fd237a4849612d2030d
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
# ==================================================== # = Model = # ==================================================== BackboneFactory.define '<%= model_name %>', <%= "#{namespace('classify')}.Models.#{model_name('classify')}" %>, -> # title: 'Your Title Here' # description: 'string, function, or another Factory' # size: _(['Tall', 'Grande', 'Venti', 'Trenta']).shuffle()[0] # section: Factory.section() <%- if collection_name -%> # ==================================================== # = Collection = # ==================================================== _(window.Factory ||= {}).extend({ <%= collection_name %>: (overrides)-> new <%= "#{namespace('classify')}.Collections.#{collection_name('classify')}" %> _({ models: _([1,2,3]).map -> BackboneFactory.create('<%= model_name %>', ->) }).extend( overrides ) }) <%- end -%> # ==================================================== # = Complex Factories = # ==================================================== refreshFactoryInterface() # section_w_section_materials: (overrides)-> Factory.section( _( section_materials: Factory.section_materials().models ).extend(overrides) ) # distributor_w_offers: (overrides)-> Factory.distributor( _(offers: Factory.offers().models ).extend(overrides))
Version data entries
3 entries across 3 versions & 1 rubygems