Title / Description
Code class User < ActiveRecord::Base # @param [#favorited_by?] object # @return [Boolean] True if the user currently has the object favorited def favorited? object return unless object.respond_to? :favorited_by? object.favorited_by? self end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code