mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
11 lines
239 B
Ruby
11 lines
239 B
Ruby
class Tweet < ActiveRecord::Base
|
|
include Extra
|
|
|
|
scope :recent2, :order => "created_at DESC", :limit => 2
|
|
scope :recent, :order => "created_at DESC", :limit => 5
|
|
has_many :comments, :as => :commentable
|
|
|
|
def to_s
|
|
msg
|
|
end
|
|
end
|