summaryrefslogtreecommitdiff
path: root/helper.rb
diff options
context:
space:
mode:
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