summaryrefslogtreecommitdiff
path: root/helper.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2019-06-13 15:28:59 +0000
committergebele <gebele@in-silico.ch>2019-06-13 15:28:59 +0000
commit741701df8ff0861b3607a30e9aaf8b8a0c303cdf (patch)
tree40fd2c6ca4eb85f3077859d9a808d01ec5aa8ece /helper.rb
parentf37f0b654b36b66c133755c01f033859c35197f6 (diff)
update with API
Diffstat (limited to 'helper.rb')
-rw-r--r--helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/helper.rb b/helper.rb
index 41fd9eb..cb77ffd 100644
--- a/helper.rb
+++ b/helper.rb
@@ -19,5 +19,8 @@ helpers do
doc.to_html.html_safe
end
+ def is_mongoid?
+ self.match(/^[a-f\d]{24}$/i) ? true : false
+ end
end