diff options
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 |