rails_backbone_generators 1.1.1 → 1.1.2

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: 34f1fca02a9e0d2fd7a3c391c3b204daefed9c98
4
- data.tar.gz: 3fe15e7b515472d749f80bb198a74424b4c4bf65
3
+ metadata.gz: 66a122dc44f509cd5d7a7cd6051992ab64e50c71
4
+ data.tar.gz: 8a403600cbc9b286147491f8bd36fef05b78938c
5
5
  SHA512:
6
- metadata.gz: 102d719f2f12593531eeac1a126eaedf11bc970c12e32f8d626b0f48292ef5f4a6f8c8615f0270c935ee78f47dd46c685e14a6c0ef34bacafee12828b6304dc8
7
- data.tar.gz: b76aaeb8280ef1e968d5515da7a15b15b9cb912a3852f775df76a03ba1da7679caa9b897c8b0ac1823ca91c5d2f36b9f95f5bc0d68fed4889fca15e18990a70d
6
+ metadata.gz: d6da1b507ea0213ec7a94295abdbccffbd9998793c30b39ff235a537c863c84372c77e119e46e5e9c6d5c324c93f8281f5b355eb93ce2683236a2cbefc8b8dde
7
+ data.tar.gz: e11d638506a1b178cfb9d1b880f265449da1f0c70f7ce785d446bcf3b396d3ea08403a0e8ee82705eeb27aa69a35e638b6da37c5d2e237a00bcb00ed3b6876d5
@@ -1 +1,3 @@
1
- class window.<%= class_name %>Router extends Backbone.Router
1
+ class <%= class_name %>Router extends Backbone.Router
2
+
3
+ new <%= class_name %>Router
@@ -1,2 +1,6 @@
1
1
  <table>
2
+ <thead>
3
+ </thead>
4
+ <tbody>
5
+ </tbody>
2
6
  </table>
@@ -3,9 +3,9 @@ class window.<%= plural_class_name %>TableView extends Backbone.View
3
3
 
4
4
  initialize: =>
5
5
  @views = []
6
- @tableenTo @collection, 'add', @add_one
7
- @tableenTo @collection, 'sync error request reset', @render
8
- @tableenTo @collection, 'search', @render
6
+ @listenTo @collection, 'add', @add_one
7
+ @listenTo @collection, 'sync error request reset', @render
8
+ @listenTo @collection, 'search', @render
9
9
 
10
10
  context: =>
11
11
  loading: @collection.loading
@@ -23,7 +23,7 @@ class window.<%= plural_class_name %>TableView extends Backbone.View
23
23
  # Instance Methods
24
24
  add_one: (model) =>
25
25
  view = new <%= singular_class_name %>RowView model: model
26
- @$('table').append view.render().$el
26
+ @$('tbody').append view.render().$el
27
27
  @views.push view
28
28
 
29
29
  remove_views: =>
@@ -1,3 +1,3 @@
1
1
  module RailsBackboneGenerators
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
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.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jade Meskill