README.md in partisan-0.4.2 vs README.md in partisan-0.5

- old
+ new

@@ -20,11 +20,11 @@ * `*_count` methods (see the new features list) But I also added awesome new ones: * You can use `following_team_ids` but also `following_team_names` (basically any `following_team_<column>s`). It takes advantage of the `pluck` method, so it doesn’t create an instance of each follower, it just return the relevant column values. (Go check `pluck` documentation, it’s simply awesome). -* The `followers` and `followings` methods now return an `ActiveRecord::Relation` for easy chaining, scoping, counting, pagination, etc. +* The `follows` and `followings` methods now return an `ActiveRecord::Relation` for easy chaining, scoping, counting, pagination, etc. ## Installation Add this line to your application’s Gemfile: @@ -70,10 +70,13 @@ fan.follow(band) fan.following_bands # => [<Band id=2>] +band.fan_followers +# => [<Fan id=1>] + fan.follows?(band) # => true fan.unfollow(band) fan.follows?(band) @@ -87,10 +90,10 @@ However, if the *followed* record has a `followers_count` column, Partisan will populate its value with how many followers the record has. ```ruby fan.follow(band) -band.followers.count +band.followings.count # SQL query that counts records and returns `1` band.followers_count # Quick lookup into the column and returns `1` ```