app/controllers/extensions_controller.rb
#
# PUT /extensions/:extension/follow
#
# Makes the current user follow the specified extension.
#
PUT /extensions/:extension/follow
Makes the current user follow the specified extension.
PUT / extensions / : extension / follow Makes the current user follow the specified extension .
def follow
    FollowExtensionWorker.perform_async(@extension.id, current_user.id)
    @extension.extension_followers.create(user: current_user)
    BonsaiAssetIndex::Metrics.increment 'extension.followed'
    render_follow_button
  end
def follow FollowExtensionWorker . perform_async ( @extension . id , current_user . id ) @extension . extension_followers . create ( user : current_user ) BonsaiAssetIndex :: Metrics . increment 'extension.followed' render_follow_button end
PUT /extensions/:extension/follow
Makes the current user follow the specified extension.
PUT / extensions / : extension / follow Makes the current user follow the specified extension .