class YeshuaCrm::ActsAsVotable::Helpers::VotableWords
Public Class Methods
meaning_of(word)
click to toggle source
check is word is a true or bad vote if the word is unknown, then it counts it as a true/good vote. this exists to allow all voting to be good by default
# File lib/yeshua_crm/helpers/vote_helper.rb, line 29 def self.meaning_of(word) !that_mean_false.include?(word) end
that_mean_false()
click to toggle source
# File lib/yeshua_crm/helpers/vote_helper.rb, line 22 def self.that_mean_false ['down', 'downvote', 'dislike', 'disliked', 'negative', 'no', 'bad', 'false', 0, false] end
that_mean_true()
click to toggle source
# File lib/yeshua_crm/helpers/vote_helper.rb, line 18 def self.that_mean_true ['up', 'upvote', 'like', 'liked', 'positive', 'yes', 'good', 'true', 1, true] end