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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45d2719eeb30f9250864996441c284beae194c7e
4
- data.tar.gz: 38010eece4b2069a12b667a12feb967d1dfca29f
3
+ metadata.gz: 86266e6b41bcefae6e79d9e5164ae3d0400ae28f
4
+ data.tar.gz: d8055efbdb75c5b706e1d19f8777df8367608fd9
5
5
  SHA512:
6
- metadata.gz: 36cfc84e2a7d664a525cf5e0282720494915bd8e564f3b3c00a5cc5a037cca77f92073b514e0b48f665d73593ea1ea3f7077ae3b0d0268a787f7415a2343b78b
7
- data.tar.gz: d3edbf3a09accb5fd125468180f878ee23b84dd91631fcda07fc1557e89e3f8fd2964e53a270258df41b36ea33213ae503fcd43d2974f7de7533cbacc579f75f
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
@@ -1,3 +1,3 @@
1
1
  module RailsBackboneGenerators
2
- VERSION = '1.1.3'
2
+ VERSION = '1.2.0'
3
3
  end
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.1.3
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-11-13 00:00:00.000000000 Z
12
+ date: 2013-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler