Permalink
Browse files

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

…epresentation
  • Loading branch information...
nathansobo committed Jan 6, 2011
1 parent cec2837 commit 5abf6073bade90083ea4c5074c42b4fc55221a4a
@@ -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()
};
},
@@ -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
};
},
@@ -28,7 +28,7 @@ Screw.Unit(function(c) { with(c) {
expect(limit.wireRepresentation()).to(equal, {
type: "limit",
operand: operand.wireRepresentation(),
- n: 2
+ count: 2
});
});
});
@@ -28,7 +28,7 @@ Screw.Unit(function(c) { with(c) {
expect(offset.wireRepresentation()).to(equal, {
type: "offset",
operand: operand.wireRepresentation(),
- n: 2
+ count: 2
});
});
});

0 comments on commit 5abf607

Please sign in to comment.