Class: ShareVisibilitiesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/share_visibilities_controller.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Method Summary collapse

Instance Method Details

#updateObject


11
12
13
14
15
# File 'app/controllers/share_visibilities_controller.rb', line 11

def update
  post = post_service.find!(params[:post_id])
  current_user.toggle_hidden_shareable(post)
  head :ok
end