summaryrefslogtreecommitdiff
path: root/core/lib/extensions
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2012-12-20 15:13:26 -0800
committerjessib <jessib@leap.se>2012-12-20 15:13:26 -0800
commitaeb69e4abf69993157f9970fa5503b7f9fd4aab5 (patch)
tree184282f312a2e5c95bbd4fd8bddb9155c4c0f2ba /core/lib/extensions
parenta920cbfb8c35cc7452b258e2f007469c9bc9b9b1 (diff)
Define ascending method in CouchRest::Model::Designs::View so we can call the order either way.
Diffstat (limited to 'core/lib/extensions')
-rw-r--r--core/lib/extensions/couchrest.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/lib/extensions/couchrest.rb b/core/lib/extensions/couchrest.rb
new file mode 100644
index 0000000..a8da23b
--- /dev/null
+++ b/core/lib/extensions/couchrest.rb
@@ -0,0 +1,8 @@
+class CouchRest::Model::Designs::View
+
+ # so we can called Ticket.method.descending or Ticket.method.ascending
+ def ascending
+ self
+ end
+
+end