must provide a message." validates_length_of :comment, :maximum => 512 before_save :send_to_services def send_to_services services = parse_hashtags services.each do |service| case service when 'twitter' then send_twitter_update end end end def send_twitter_update return if comment.length > 180 client = user.twitter_client client.update(comment) if client end def icon "glyphicons/glyphicons_010_envelope.png" end end Thursday, July 12, 12
"You must provide a message." validates_length_of :comment, :maximum => 512 before_save :send_to_services def send_to_services services = parse_hashtags services.each do |service| case service when 'twitter' then send_twitter_update end end end def send_twitter_update return if comment.length > 180 client = user.twitter_client client.update(comment) if client end def icon "glyphicons/glyphicons_010_envelope.png" end end Thursday, July 12, 12
"You must provide a message." validates_length_of :comment, :maximum => 512 before_save :send_to_services def send_to_services return unless original_growl? services = parse_hashtags services.each do |service| case service when 'twitter' then send_twitter_update end end end def send_twitter_update return if comment.length > 180 client = user.twitter_client client.update(comment) if client end def icon "glyphicons/glyphicons_010_envelope.png" end end Thursday, July 12, 12