lib/popular/popular.rb in popular-0.3.1 vs lib/popular/popular.rb in popular-0.3.2

- old
+ new

@@ -1,7 +1,7 @@ module Popular - + # Namespace for methods included in popular models module Popular extend ActiveSupport::Concern included do |base| @@ -81,9 +81,10 @@ # user.friends_with? other_user #=> true def friends_with? popular_model friendships.where( friend: popular_model ).any? end + # ClassMethods included in popular models module ClassMethods # before_befriend callback convenience class method # # @since 0.3.0