Sha256: f4c7f6949f09b0a57f891660f55c253932afc0f44663542fae1af780a85bdb72
Contents?: true
Size: 487 Bytes
Versions: 2
Compression:
Stored size: 487 Bytes
Contents
class Mingle::Twitter::Tweet < ActiveRecord::Base has_many :hashtaggings, class_name: 'Mingle::Hashtagging', as: :hashtaggable, dependent: :destroy has_many :hashtags, through: :hashtaggings validates :text, :tweet_id, :user_handle, :user_image_url, :user_name, presence: true scope :ordered, lambda { order('created_at ASC') } before_save :ensure_https_urls private def ensure_https_urls self.user_image_url = user_image_url.sub(/http:/, 'https:') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mingle-0.1.1 | app/models/mingle/twitter/tweet.rb |
mingle-0.1 | app/models/mingle/twitter/tweet.rb |