lib/socialcastr/like.rb in socialcastr-0.0.1 vs lib/socialcastr/like.rb in socialcastr-0.1.0
- old
+ new
@@ -1,10 +1,10 @@
module Socialcastr
class Like < Base
+ id_element
element :unlikable
element :user, :class => Socialcastr::User
element :created_at
- element :id
def unlikable_by?(api_id)
@unlikable && api_id == self.user_id ? true : false
end
end
end