Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed Limit/Offset#n to #count on the server side and in the wire r…

…epresentation
  • Loading branch information...
commit 5abf6073bade90083ea4c5074c42b4fc55221a4a 1 parent cec2837
@nathansobo authored
View
2  lib/monarch/model/relations/limit.js
@@ -12,7 +12,7 @@ _.constructor("Monarch.Model.Relations.Limit", Monarch.Model.Relations.Relation,
wireRepresentation: function() {
return {
type: "limit",
- n: this.n,
+ count: this.n,
operand: this.operand.wireRepresentation()
};
},
View
2  lib/monarch/model/relations/offset.js
@@ -17,7 +17,7 @@ _.constructor("Monarch.Model.Relations.Offset", Monarch.Model.Relations.Relation
return {
type: "offset",
operand: this.operand.wireRepresentation(),
- n: this.n
+ count: this.n
};
},
View
2  spec/monarch/model/relations/limit_spec.js
@@ -28,7 +28,7 @@ Screw.Unit(function(c) { with(c) {
expect(limit.wireRepresentation()).to(equal, {
type: "limit",
operand: operand.wireRepresentation(),
- n: 2
+ count: 2
});
});
});
View
2  spec/monarch/model/relations/offset_spec.js
@@ -28,7 +28,7 @@ Screw.Unit(function(c) { with(c) {
expect(offset.wireRepresentation()).to(equal, {
type: "offset",
operand: operand.wireRepresentation(),
- n: 2
+ count: 2
});
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.