rails_backbone_generators 1.1.2 → 1.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d2719eeb30f9250864996441c284beae194c7e
|
4
|
+
data.tar.gz: 38010eece4b2069a12b667a12feb967d1dfca29f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36cfc84e2a7d664a525cf5e0282720494915bd8e564f3b3c00a5cc5a037cca77f92073b514e0b48f665d73593ea1ea3f7077ae3b0d0268a787f7415a2343b78b
|
7
|
+
data.tar.gz: d3edbf3a09accb5fd125468180f878ee23b84dd91631fcda07fc1557e89e3f8fd2964e53a270258df41b36ea33213ae503fcd43d2974f7de7533cbacc579f75f
|
@@ -19,6 +19,14 @@ module Backbone
|
|
19
19
|
end
|
20
20
|
|
21
21
|
protected
|
22
|
+
def plural_class_name
|
23
|
+
@plural_class_name ||= class_name.pluralize
|
24
|
+
end
|
25
|
+
|
26
|
+
def singular_class_name
|
27
|
+
@singular_class_name ||= class_name.singularize
|
28
|
+
end
|
29
|
+
|
22
30
|
def singular_file_name
|
23
31
|
@singular_file_name ||= file_name.singularize
|
24
32
|
end
|
@@ -1,2 +1,2 @@
|
|
1
|
-
class window.<%=
|
2
|
-
model: <%=
|
1
|
+
class window.<%= plural_class_name %> extends Backbone.Collection
|
2
|
+
model: <%= singular_class_name %>
|
@@ -1 +1 @@
|
|
1
|
-
class window.<%=
|
1
|
+
class window.<%= singular_class_name %> extends Backbone.Model
|
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.
|
4
|
+
version: 1.1.3
|
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-
|
12
|
+
date: 2013-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|