module Emotions::Emotive
Public Instance Methods
update_emotion_counter(emotion)
click to toggle source
@private
# File lib/emotions/emotive.rb, line 14 def update_emotion_counter(emotion) attribute = "#{emotion}_emotions_count" if respond_to?(attribute) update_attribute(attribute, send("#{emotion}_about").count) end end