app/controllers/extensions_controller.rb
#
# DELETE /extensions/:extension/unfollow
#
# Makes the current user unfollow the specified extension.
#
DELETE /extensions/:extension/unfollow
Makes the current user unfollow the specified extension.
DELETE / extensions / : extension / unfollow Makes the current user unfollow the specified extension .
def unfollow
    UnfollowExtensionWorker.perform_async(@extension.id, current_user.id)
    extension_follower = @extension.extension_followers.
      where(user: current_user).first!
    extension_follower.destroy
    BonsaiAssetIndex::Metrics.increment 'extension.unfollowed'
    render_follow_button
  end
def unfollow UnfollowExtensionWorker . perform_async ( @extension . id , current_user . id ) extension_follower = @extension . extension_followers . where ( user : current_user ) . first! extension_follower . destroy BonsaiAssetIndex :: Metrics . increment 'extension.unfollowed' render_follow_button end
DELETE /extensions/:extension/unfollow
Makes the current user unfollow the specified extension.
DELETE / extensions / : extension / unfollow Makes the current user unfollow the specified extension .