Class: Blogit::Comment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Blogit::Comment
- Includes:
- Validators
- Defined in:
- app/models/blogit/comment.rb
Constant Summary
- URL_REGEX =
TODO: Check if this is optimal
/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix
- EMAIL_REGEX =
TODO: Check if this is optimal
/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
Instance Attribute Summary (collapse)
-
- (Object) nickname
nickname acts as a “honeypot” to catch spam the form field should be hidden using CSS and so if present, must be spam.
Instance Attribute Details
- (Object) nickname
nickname acts as a “honeypot” to catch spam the form field should be hidden using CSS and so if present, must be spam.
38 39 40 |
# File 'app/models/blogit/comment.rb', line 38 def nickname @nickname end |