Class: Notification

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/notification.rb

Instance Method Summary collapse

Instance Method Details

#send_public_tweetObject


8
9
10
11
# File 'app/models/notification.rb', line 8

def send_public_tweet
  message = "#{self.status_type}! #{self.message.slice(0, 100)}"
  TwitterAccount.twitter_post(message, 1)
end