Sha256: 342f8c8e513c3e85481da32802678777c36298ea67cf9739432fecde3e8a8cbb

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

Ext.define('<%= @bundle %>.model.<%= class_name %>', {
    
	extend : 'Ext.data.Model',
    
	<%= Hatio::Generators::ResourceViewUtil.generate_model_fields(options, @columns, "\t\t") %>,
	
  	proxy : {
		type : 'rest',
		url : '<%= table_name %>',
		format : 'json',
	    reader : {
			type : 'json'
        },
        writer : {
			type : 'json',
			root : '<%= singular_name %>'
        }
	}
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hatio-core-0.0.6 lib/generators/hatio/resource_view/templates/Model.js