Sha256: f05967541f78bd793a48ed4588bff21b86246529a207014ab0710dbf2b698dc7
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
window.<%= @model_name.camelize %> = class <%= @model_name.camelize %> extends Spine.Model @configure "<%= @model_name.camelize %>", <%= fields.map {|f| %Q{"#{f}"} }.join(', ') %> @extend Spine.Model.Ajax select: => item.deselect() for item in @constructor.all() when item.selected @selected = true @trigger("select", @) deselect: => @selected = false @trigger("deselect", @) @selected: -> @select (item) -> item.selected is true
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
space_frame_spine-0.0.5 | lib/generators/model/templates/app/models/%model_name%.coffee.tt |