rails_backbone_generators 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/backbone/list_view/templates/list_view.js.coffee +0 -1
- data/lib/generators/backbone/list_view/templates/row_view.js.coffee +4 -0
- data/lib/generators/backbone/table_view/templates/row_view.js.coffee +4 -0
- data/lib/generators/backbone/table_view/templates/table_view.js.coffee +0 -1
- data/lib/rails_backbone_generators.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86266e6b41bcefae6e79d9e5164ae3d0400ae28f
|
4
|
+
data.tar.gz: d8055efbdb75c5b706e1d19f8777df8367608fd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53ff6ed2f98a621cc1a029e878582d400a2c4f12946fce2762e637eefedeb1d896fe2c81b58b14865ccbfc04cc46f9d6d7f2397938ce2fb1a581e0f0ed206bcc
|
7
|
+
data.tar.gz: 11d5b2a6cd2460d7d30b6dc535dbb695bcc660e96f3ecd46cc6c67dacfc514fd7bb76b31333ef1ccd6ec8e2c41edd8c2c2f0a4190cad802d9d0204c9b531a630
|
@@ -5,7 +5,6 @@ class window.<%= plural_class_name %>ListView extends Backbone.View
|
|
5
5
|
@views = []
|
6
6
|
@listenTo @collection, 'add', @add_one
|
7
7
|
@listenTo @collection, 'sync error request reset', @render
|
8
|
-
@listenTo @collection, 'search', @render
|
9
8
|
|
10
9
|
context: =>
|
11
10
|
loading: @collection.loading
|
@@ -2,6 +2,10 @@ class window.<%= singular_class_name %>RowView extends Backbone.View
|
|
2
2
|
template: JST['templates/<%= singular_file_name %>_row']
|
3
3
|
tagName: 'li'
|
4
4
|
|
5
|
+
initialize: =>
|
6
|
+
@listenTo @model, 'remove', @remove
|
7
|
+
@listenTo @model, 'change', @render
|
8
|
+
|
5
9
|
context: =>
|
6
10
|
model: @model.toJSON()
|
7
11
|
|
@@ -2,6 +2,10 @@ class window.<%= singular_class_name %>RowView extends Backbone.View
|
|
2
2
|
template: JST['templates/<%= singular_file_name %>_row']
|
3
3
|
tagName: 'tr'
|
4
4
|
|
5
|
+
initialize: =>
|
6
|
+
@listenTo @model, 'remove', @remove
|
7
|
+
@listenTo @model, 'change', @render
|
8
|
+
|
5
9
|
context: =>
|
6
10
|
model: @model.toJSON()
|
7
11
|
|
@@ -5,7 +5,6 @@ class window.<%= plural_class_name %>TableView extends Backbone.View
|
|
5
5
|
@views = []
|
6
6
|
@listenTo @collection, 'add', @add_one
|
7
7
|
@listenTo @collection, 'sync error request reset', @render
|
8
|
-
@listenTo @collection, 'search', @render
|
9
8
|
|
10
9
|
context: =>
|
11
10
|
loading: @collection.loading
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_backbone_generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jade Meskill
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|