Sha256: baf38aaf7b6f7653465aa9918bf8e395ae27f813a70f19bb49e4c05deba81f3b
Contents?: true
Size: 855 Bytes
Versions: 6
Compression:
Stored size: 855 Bytes
Contents
<% module_namespacing do -%> LiveRecord.Model.create( { modelName: '<%= singular_table_name.camelcase %>', plugins: { // remove this line if you're not using LiveDOM LiveDOM: true }, // More configurations below. See https://github.com/jrpolidario/live_record#example-1---model // belongsTo: { // user: { foreignKey: 'user_id', modelName: 'User' } // }, // hasMany: { // books: { foreignKey: '<%= singular_table_name %>_id', modelName: 'Book' } // }, // callbacks: { // 'on:disconnect': [], // 'after:update': [] // }, // classMethods: { // someMethod: function(arg1, arg2) { // return 'somevalue'; // } // }, // instanceMethods: { // someMethod: function(arg1, arg2) { // return 'somevalue'; // } // } } ) <% end -%>
Version data entries
6 entries across 6 versions & 1 rubygems