Class: Like

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/like.rb

Class Method Summary collapse

Class Method Details

.find_likes_cast_by_user(user) ⇒ Object



6
7
8
9
10
11
# File 'lib/like.rb', line 6

def self.find_likes_cast_by_user(user)
    find(:all,
        :conditions => ["user_id = ? ", user.id],
        :order => "created_at DESC"
    )
end