diff options
author | gebele <gebele@in-silico.ch> | 2019-06-13 15:28:59 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-06-13 15:28:59 +0000 |
commit | 741701df8ff0861b3607a30e9aaf8b8a0c303cdf (patch) | |
tree | 40fd2c6ca4eb85f3077859d9a808d01ec5aa8ece /helper.rb | |
parent | f37f0b654b36b66c133755c01f033859c35197f6 (diff) |
update with API
Diffstat (limited to 'helper.rb')
-rw-r--r-- | helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |