Sha256: ad32effe3b2decaf83e9ad7bd24d8e1be019e6a58aa3173a9a50af1c83f4620a

Contents?: true

Size: 673 Bytes

Versions: 95

Compression:

Stored size: 673 Bytes

Contents

model - Create a new model class in your SproutCore app.

USAGE:

  sc-gen model AppName.ClassName [--filename=FILENAME] [--target=TARGET_NAME]

DISCUSSION:

This generator will create a new SproutCore model file in your app.  You should pass as the first parameter your AppName.ClassName combination you want to create.  For example:

sc-gen model Todos.Task

defines a new class called Todos.Task in the file apps/todos/models/task.js .

In addition to creating a model class, this will also create a stub for you to add Fixture data.  This is a convenient way to preload your application with data while you develop the client but have not yet connected to your server.

Version data entries

95 entries across 95 versions & 2 rubygems

Version Path
sproutcore-1.4.5-java lib/gen/model/USAGE
sproutcore-1.4.4-java lib/gen/model/USAGE
sproutcore-1.4.4 lib/gen/model/USAGE
sproutcore-1.4.3.1 lib/gen/model/USAGE
sproutcore-1.4.3-java lib/gen/model/USAGE
sproutcore-1.4.3 lib/gen/model/USAGE
sproutcore-1.4.2-java lib/gen/model/USAGE
sproutcore-1.4.2 lib/gen/model/USAGE
sproutcore-1.4.1-java lib/gen/model/USAGE
sproutcore-1.4.1 lib/gen/model/USAGE
sproutcore-1.4.0-java lib/gen/model/USAGE
sproutcore-1.4.0 lib/gen/model/USAGE
sproutcore-1.4.0.rc.5 lib/gen/model/USAGE
sproutcore-1.4.0.rc.4 lib/gen/model/USAGE
sproutcore-1.4.0.rc.3 lib/gen/model/USAGE
sproutcore-1.4.0.rc.2 lib/gen/model/USAGE
sproutcore-1.4.0.rc gen/model/USAGE
sproutcore-1.0.1049.pre.2 gen/model/USAGE
sproutcore-1.0.1049.pre.1 gen/model/USAGE
sproutcore-1.0.1046 gen/model/USAGE