Module: Ecm::Comments::Comment::SpamProtection

Included in:
Ecm::Comments::Comment
Defined in:
app/models/ecm/comments/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nicknameObject

Returns the value of attribute nickname.



58
59
60
# File 'app/models/ecm/comments/comment.rb', line 58

def nickname
  @nickname
end

Instance Method Details

#saveObject



60
61
62
63
64
65
66
67
# File 'app/models/ecm/comments/comment.rb', line 60

def save
  if nickname.present?
    valid?
    return true
  else
    super
  end
end