]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Refactor friendships controller and model
[rails.git] / app / abilities / ability.rb
index 9516a30126ce8f05211fe593386dfe17bd521ba7..4c5288307c6a9026e752f26f4222e61f00d1c176 100644 (file)
@@ -42,7 +42,7 @@ class Ability
         can [:create, :subscribe, :unsubscribe], DiaryEntry
         can :update, DiaryEntry, :user => user
         can [:create], DiaryComment
-        can [:make_friend, :remove_friend], Friendship
+        can [:show, :create, :destroy], Follow
         can [:read, :create, :mark, :unmute, :destroy], Message
         can [:close, :reopen], Note
         can [:read, :update], :preference