summaryrefslogtreecommitdiff
path: root/core/lib
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib')
-rw-r--r--core/lib/extensions/couchrest.rb8
-rw-r--r--core/lib/leap_web_core.rb1
2 files changed, 9 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
diff --git a/core/lib/leap_web_core.rb b/core/lib/leap_web_core.rb
index 8826880..a58d140 100644
--- a/core/lib/leap_web_core.rb
+++ b/core/lib/leap_web_core.rb
@@ -7,6 +7,7 @@ require "couchrest_session_store"
require "json"
require "extensions/testing"
+require "extensions/couchrest"
require "leap_web_core/engine"
module LeapWebCore