pullentity-backbone 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pullentity/backbone/version.rb +1 -1
- data/vendor/assets/javascripts/pullentity-backbone/app/models/project.js.coffee +3 -2
- data/vendor/assets/javascripts/pullentity-backbone/app/models/section.js.coffee +2 -2
- data/vendor/assets/javascripts/pullentity-backbone/app/models/site.js.coffee +2 -2
- metadata +2 -2
@@ -1,11 +1,12 @@
|
|
1
1
|
class Pullentity.Models.Project extends Backbone.Model
|
2
2
|
|
3
|
+
|
3
4
|
class Pullentity.Collections.Projects extends Backbone.Collection
|
4
5
|
|
5
6
|
model: Pullentity.Models.Project
|
6
7
|
|
7
8
|
url : ()->
|
8
9
|
if @id
|
9
|
-
"#{Pullentity.Domain}
|
10
|
+
"#{Pullentity.Domain}/api/v1/site/projects/#{@id}"
|
10
11
|
else
|
11
|
-
"#{Pullentity.Domain}
|
12
|
+
"#{Pullentity.Domain}/api/v1/site/projects"
|
@@ -7,7 +7,7 @@ class Pullentity.Collections.Sections extends Backbone.Collection
|
|
7
7
|
|
8
8
|
url : ()->
|
9
9
|
if @id
|
10
|
-
"#{Pullentity.Domain}
|
10
|
+
"#{Pullentity.Domain}/api/v1/site/sections/#{@id}"
|
11
11
|
else
|
12
|
-
"#{Pullentity.Domain}
|
12
|
+
"#{Pullentity.Domain}/api/v1/site/sections"
|
13
13
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class Pullentity.Models.Site extends Backbone.Model
|
2
2
|
url : ()->
|
3
3
|
if @id
|
4
|
-
"#{Pullentity.Domain}
|
4
|
+
"#{Pullentity.Domain}/api/v1/site"
|
5
5
|
else
|
6
|
-
"#{Pullentity.Domain}
|
6
|
+
"#{Pullentity.Domain}/api/v1/sites"
|
7
7
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pullentity-backbone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|